summaryrefslogtreecommitdiffstats
path: root/application
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
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')
-rw-r--r--application/basilisk/base/content/browser-syncui.js6
-rw-r--r--application/palemoon/base/content/browser-syncui.js2
2 files changed, 2 insertions, 6 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;
diff --git a/application/palemoon/base/content/browser-syncui.js b/application/palemoon/base/content/browser-syncui.js
index 6fad03cdd..b9a3db2eb 100644
--- a/application/palemoon/base/content/browser-syncui.js
+++ b/application/palemoon/base/content/browser-syncui.js
@@ -282,7 +282,7 @@ var gSyncUI = {
if (!syncButton)
return;
- let lastSync = Services.prefs.getCharPref("services.sync.lastSync");
+ let lastSync = Services.prefs.getCharPref("services.sync.lastSync", "");
if (!lastSync || this._needsSetup()) {
syncButton.removeAttribute("tooltiptext");
return;