[PHOENIX] Fix missing default from lastSync in browser-syncui.js in Pale Moon and replace the tryblock in Basilisk

This commit is contained in:
Fedor 2019-05-20 09:02:45 +03:00
parent bc55c7ba32
commit 15a479e5c8
2 changed files with 2 additions and 6 deletions

View File

@ -282,11 +282,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;

View File

@ -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;