From 5d02c22076b3c1350fd46b3596a839fa915033a2 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sun, 21 Apr 2019 12:59:20 -0400 Subject: [PHOENIX] Fix missing default from lastSync in browser-syncui.js in Pale Moon and replace the tryblock in Basilisk --- application/basilisk/base/content/browser-syncui.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'application/basilisk') diff --git a/application/basilisk/base/content/browser-syncui.js b/application/basilisk/base/content/browser-syncui.js index d0f46247a..ee84391b3 100644 --- a/application/basilisk/base/content/browser-syncui.js +++ b/application/basilisk/base/content/browser-syncui.js @@ -281,11 +281,7 @@ var gSyncUI = { if (!syncButton) return; - let lastSync; - try { - lastSync = Services.prefs.getCharPref("services.sync.lastSync"); - } - catch (e) { }; + let lastSync = Services.prefs.getCharPref("services.sync.lastSync", ""); if (!lastSync || this._needsSetup()) { syncButton.removeAttribute("tooltiptext"); return; -- cgit v1.2.3