diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-04-21 12:59:20 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-04-21 12:59:20 -0400 |
commit | 5d02c22076b3c1350fd46b3596a839fa915033a2 (patch) | |
tree | 7eb897a3c4b3cd7f7821f073da318c0d9161d9b4 /application/basilisk/base/content | |
parent | bca1943ca7bc8282cbf83be4898ab1d7e9e5355f (diff) | |
download | UXP-5d02c22076b3c1350fd46b3596a839fa915033a2.tar UXP-5d02c22076b3c1350fd46b3596a839fa915033a2.tar.gz UXP-5d02c22076b3c1350fd46b3596a839fa915033a2.tar.lz UXP-5d02c22076b3c1350fd46b3596a839fa915033a2.tar.xz UXP-5d02c22076b3c1350fd46b3596a839fa915033a2.zip |
[PHOENIX] Fix missing default from lastSync in browser-syncui.js in Pale Moon and replace the tryblock in Basilisk
Diffstat (limited to 'application/basilisk/base/content')
-rw-r--r-- | application/basilisk/base/content/browser-syncui.js | 6 |
1 files changed, 1 insertions, 5 deletions
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; |