зеркало из https://github.com/mozilla/pjs.git
Adding in check for calendar window to remove js error.
This commit is contained in:
Родитель
f70f468f48
Коммит
0b4c22a373
|
@ -630,6 +630,12 @@ CalendarAlarmObserver.prototype.fireAlarm = function( calendarEvent )
|
|||
{
|
||||
dump( "Fire alarm "+ calendarEvent );
|
||||
|
||||
if( typeof( gCalendarWindow ) == "undefined" )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if( gCalendarWindow.calendarPreferences.getPref( "alarmsplaysound" ) )
|
||||
{
|
||||
playSound();
|
||||
|
|
Загрузка…
Ссылка в новой задаче