зеркало из https://github.com/mozilla/gecko-dev.git
Adding in alerts if ical not registered properly.
This commit is contained in:
Родитель
667ca273e2
Коммит
b380b6a596
|
@ -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
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче