[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

@ -88,8 +88,7 @@ var gPrivacyPane = {
initializeHistoryMode: function()
{
let mode;
let getVal = function(aPref)
document.getElementById(aPref).value;
let getVal = aPref => document.getElementById(aPref).value;
if (this._checkDefaultValues(this.prefsForDefault)) {
if (getVal("browser.privatebrowsing.autostart"))