[Pale-Moon] Issue MoonchildProductions/UXP#1828 - Stop using js expression closures in Pale Moon front-end

Stop using non-standard JS expression closures in Pale Moon front-end.
This commit is contained in:
win7-7 2022-04-23 14:51:43 +03:00 committed by roytam1
commit 264752661b
28 changed files with 244 additions and 149 deletions

View file

@ -50,7 +50,10 @@ var gSyncSetup = {
server: false
},
get _remoteSites() [Weave.Service.serverURL, RECAPTCHA_DOMAIN],
get _remoteSites() {
return [Weave.Service.serverURL, RECAPTCHA_DOMAIN];
},
get _usingMainServers() {
if (this._settingUpNew)
@ -78,7 +81,7 @@ var gSyncSetup = {
});
};
addRem(true);
window.addEventListener("unload", function() addRem(false), false);
window.addEventListener("unload", () => addRem(false), false);
window.setTimeout(function() {
// Force Service to be loaded so that engines are registered.