Bug 158711 Mail Alert Notification checkbox r/sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@196808 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
83e5640452
commit
e8a72dcc5c
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user