From e8a72dcc5cc815c0facca4882dde68f18cb932bf Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Wed, 17 May 2006 02:23:10 +0000 Subject: [PATCH] Bug 158711 Mail Alert Notification checkbox r/sr=sspitzer git-svn-id: svn://10.0.0.236/trunk@196808 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/common/pref/pref-download.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/mozilla/suite/common/pref/pref-download.js b/mozilla/suite/common/pref/pref-download.js index a970bdef5af..fb13122b1a1 100644 --- a/mozilla/suite/common/pref/pref-download.js +++ b/mozilla/suite/common/pref/pref-download.js @@ -2,15 +2,10 @@ function Startup() { PlaySoundCheck(); - // if we can't get the alert service, hide the pref UI for using alerts to notify on new mail + // if we don't have the alert service, hide the pref UI for using alerts to notify on new mail // see bug #158711 - try { - var alertService = Components.classes["@mozilla.org/alerts-service;1"].getService(Components.interfaces.nsIAlertsService); - } - catch(ex) { - var newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert"); - newMailNotificationAlertUI.setAttribute("hidden","true"); - } + var newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert"); + newMailNotificationAlertUI.hidden = !("@mozilla.org/alerts-service;1" in Components.classes); } function PlaySoundCheck()