summaryrefslogtreecommitdiffstats
path: root/application/basilisk/base/content
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-04-21 12:59:20 -0400
committerMatt A. Tobin <email@mattatobin.com>2019-04-21 12:59:20 -0400
commit5d02c22076b3c1350fd46b3596a839fa915033a2 (patch)
tree7eb897a3c4b3cd7f7821f073da318c0d9161d9b4 /application/basilisk/base/content
parentbca1943ca7bc8282cbf83be4898ab1d7e9e5355f (diff)
downloadUXP-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.js6
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;