diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-08 19:58:00 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-13 11:37:45 -0400 |
commit | 7591326915a100b54ca17ad6fedb391645bac6b5 (patch) | |
tree | 023fc0d4fd451dda98899e1da27998c072865d9a /application/basilisk/components/preferences | |
parent | 9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5 (diff) | |
download | UXP-7591326915a100b54ca17ad6fedb391645bac6b5.tar UXP-7591326915a100b54ca17ad6fedb391645bac6b5.tar.gz UXP-7591326915a100b54ca17ad6fedb391645bac6b5.tar.lz UXP-7591326915a100b54ca17ad6fedb391645bac6b5.tar.xz UXP-7591326915a100b54ca17ad6fedb391645bac6b5.zip |
Issue #991 Part 2: Basilisk
Diffstat (limited to 'application/basilisk/components/preferences')
-rw-r--r-- | application/basilisk/components/preferences/in-content/sync.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/application/basilisk/components/preferences/in-content/sync.js b/application/basilisk/components/preferences/in-content/sync.js index 2600677a8..9496d34b6 100644 --- a/application/basilisk/components/preferences/in-content/sync.js +++ b/application/basilisk/components/preferences/in-content/sync.js @@ -86,21 +86,12 @@ var gSyncPane = { }, _showLoadPage: function (xps) { - let username; - try { - username = Services.prefs.getCharPref("services.sync.username"); - } catch (e) {} + let username = Services.prefs.getCharPref("services.sync.username", ""); if (!username) { this.page = FXA_PAGE_LOGGED_OUT; } else if (xps.fxAccountsEnabled) { // Use cached values while we wait for the up-to-date values - let cachedComputerName; - try { - cachedComputerName = Services.prefs.getCharPref("services.sync.client.name"); - } - catch (e) { - cachedComputerName = ""; - } + let cachedComputerName = Services.prefs.getCharPref("services.sync.client.name", ""); document.getElementById("fxaEmailAddress1").textContent = username; this._populateComputerName(cachedComputerName); this.page = FXA_PAGE_LOGGED_IN; |