[PHOENIX] Fix missing default from lastSync in browser-syncui.js in Pale Moon and replace the tryblock in Basilisk
This commit is contained in:
parent
bc55c7ba32
commit
15a479e5c8
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user