Adding in alerts if ical not registered properly.

This commit is contained in:
mikep%oeone.com 2002-03-21 15:26:19 +00:00
Родитель 667ca273e2
Коммит b380b6a596
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -99,8 +99,19 @@ function CalendarEventDataSource( observer, UserPath, syncPath )
{
var iCalLibComponent = Components.classes["@mozilla.org/ical;1"].createInstance();
if( !iCalLibComponent )
{
alert( "The ICAL Componenet is not registered properly. Please quit Mozilla, remove your component.reg file and restart Mozilla." );
return;
}
this.gICalLib = iCalLibComponent.QueryInterface(Components.interfaces.oeIICal);
if( !this.gICalLib )
{
alert( "The ICAL Componenet is not registered properly. Please quit Mozilla, remove your component.reg file and restart Mozilla." );
return;
}
/*
** FROM HERE TO "<<HERE" IS A HACK FROM JSLIB, REPLACE THIS IF YOU KNOW HOW
*/