From 830de9334ae356158999c58203a65d31aac8a8ad Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Fri, 12 Dec 2003 23:44:07 +0000 Subject: [PATCH] Supplementary patch to bug 227651 bulletproofing in case the overlaid window does not have a component bar r=timeless sr=bryner a=asa git-svn-id: svn://10.0.0.236/trunk@150270 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/tasks/resources/content/tasksOverlay.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/extensions/tasks/resources/content/tasksOverlay.js b/mozilla/extensions/tasks/resources/content/tasksOverlay.js index 28562bfaeee..3a8acc23503 100644 --- a/mozilla/extensions/tasks/resources/content/tasksOverlay.js +++ b/mozilla/extensions/tasks/resources/content/tasksOverlay.js @@ -48,8 +48,10 @@ function OtherTasksOnLoad() var appFile = getAppFile("task.calendar.location"); if (appFile && !haveInternalCalendar()) { - otherCalTaskBarIcon.hidden = false; - otherCalMenuItem.hidden = false; + if (otherCalTaskBarIcon) + otherCalTaskBarIcon.hidden = false; + if (otherCalMenuItem) + otherCalMenuItem.hidden = false; } }