From 7591326915a100b54ca17ad6fedb391645bac6b5 Mon Sep 17 00:00:00 2001 From: Ascrod <32915892+Ascrod@users.noreply.github.com> Date: Mon, 8 Apr 2019 19:58:00 -0400 Subject: Issue #991 Part 2: Basilisk --- .../basilisk/components/preferences/in-content/sync.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'application/basilisk/components/preferences/in-content/sync.js') 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; -- cgit v1.2.3