Adding in check for calendar window to remove js error.

This commit is contained in:
mikep%oeone.com 2002-06-17 13:39:29 +00:00
Родитель f70f468f48
Коммит 0b4c22a373
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -630,6 +630,12 @@ CalendarAlarmObserver.prototype.fireAlarm = function( calendarEvent )
{ {
dump( "Fire alarm "+ calendarEvent ); dump( "Fire alarm "+ calendarEvent );
if( typeof( gCalendarWindow ) == "undefined" )
{
return;
}
if( gCalendarWindow.calendarPreferences.getPref( "alarmsplaysound" ) ) if( gCalendarWindow.calendarPreferences.getPref( "alarmsplaysound" ) )
{ {
playSound(); playSound();