mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Adding in alerts if ical not registered properly.
This commit is contained in:
parent
667ca273e2
commit
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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user