diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-08 18:12:40 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-13 11:37:45 -0400 |
commit | 9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5 (patch) | |
tree | f2f676dbca9e8beb16895e97d733bc9de70ecd07 /application/palemoon/components/distribution.js | |
parent | 7d1126fad325e889559b1f9113cbbb17d49842fa (diff) | |
download | UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.gz UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.lz UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.xz UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.zip |
Issue #991 Part 1: Pale Moon
Diffstat (limited to 'application/palemoon/components/distribution.js')
-rw-r--r-- | application/palemoon/components/distribution.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/application/palemoon/components/distribution.js b/application/palemoon/components/distribution.js index d3300604e..121e55b1b 100644 --- a/application/palemoon/components/distribution.js +++ b/application/palemoon/components/distribution.js @@ -38,13 +38,7 @@ DistributionCustomizer.prototype = { }, get _locale() { - let locale; - try { - locale = this._prefs.getCharPref("general.useragent.locale"); - } - catch (e) { - locale = "en-US"; - } + let locale = this._prefs.getCharPref("general.useragent.locale", "en-US"); this.__defineGetter__("_locale", function() locale); return this._locale; }, @@ -221,11 +215,7 @@ DistributionCustomizer.prototype = { this._ini.getString("Global", "id") + ".bookmarksProcessed"; } - let bmProcessed = false; - try { - bmProcessed = this._prefs.getBoolPref(bmProcessedPref); - } - catch (e) {} + let bmProcessed = this._prefs.getBoolPref(bmProcessedPref, false); if (!bmProcessed) { if (sections["BookmarksMenu"]) |