make sure the default browser check doesn't incorrectly report status

This commit is contained in:
ben%bengoodger.com 2004-03-09 06:51:27 +00:00
parent ea9e726b8b
commit e7ebcfa5d4

View File

@ -218,7 +218,7 @@ function checkNow()
const IPS = Components.interfaces.nsIPromptService;
var psvc = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(IPS);
// if (!shell.isDefaultBrowser(false)) {
if (!shell.isDefaultBrowser(false)) {
promptMessage = shellBundle.getFormattedString("setDefaultBrowserMessage",
[brandShortName]);
var rv = psvc.confirmEx(window, promptTitle, promptMessage,
@ -227,12 +227,11 @@ function checkNow()
null, null, null, null, { });
if (rv == 0)
shell.setDefaultBrowser(true);
/*
}
else {
promptMessage = shellBundle.getFormattedString("alreadyDefaultBrowser",
[brandShortName]);
psvc.alert(window, promptTitle, promptMessage);
}*/
}
}
#endif