mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
Pref try/catch block fixup. Tag #991.
This commit is contained in:
parent
a24456a76d
commit
09bcb1f834
3 changed files with 18 additions and 12 deletions
|
|
@ -983,11 +983,14 @@ function ParamSubstitution(aParamValue, aSearchTerms, aEngine) {
|
|||
|
||||
var distributionID = Services.prefs.getCharPref(BROWSER_SEARCH_PREF + "distributionID",
|
||||
Services.appinfo.distributionID || "");
|
||||
var official;
|
||||
if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "official", MOZ_OFFICIAL))
|
||||
official = "official";
|
||||
else
|
||||
official = "unofficial";
|
||||
var official = MOZ_OFFICIAL;
|
||||
try {
|
||||
if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "official"))
|
||||
official = "official";
|
||||
else
|
||||
official = "unofficial";
|
||||
}
|
||||
catch (ex) { }
|
||||
|
||||
// Custom search parameters. These are only available to default search
|
||||
// engines.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue