mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
fix for bug #158711. don't show the "show and alert" pref UI for platforms
(like linux) that don't have the alert service. r/sr=dmose, a=asa
This commit is contained in:
parent
dd7b545622
commit
c3753032f5
@ -1,6 +1,16 @@
|
||||
function Startup()
|
||||
{
|
||||
PlaySoundCheck();
|
||||
|
||||
// if we can't get 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");
|
||||
}
|
||||
}
|
||||
|
||||
function PlaySoundCheck()
|
||||
|
@ -1,6 +1,16 @@
|
||||
function Startup()
|
||||
{
|
||||
PlaySoundCheck();
|
||||
|
||||
// if we can't get 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");
|
||||
}
|
||||
}
|
||||
|
||||
function PlaySoundCheck()
|
||||
|
Loading…
x
Reference in New Issue
Block a user