[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

@ -35,7 +35,7 @@ var Windows8WindowFrameColor = {
// Zero-pad the number just to make sure that it is 8 digits.
windowFrameColorHex = ("00000000" + windowFrameColorHex).substr(-8);
let windowFrameColorArray = windowFrameColorHex.match(/../g);
let [unused, fgR, fgG, fgB] = windowFrameColorArray.map(function(val) parseInt(val, 16));
let [unused, fgR, fgG, fgB] = windowFrameColorArray.map(val => parseInt(val, 16));
let windowFrameColorBalance = WindowsRegistry.readRegKey(HKCU, dwmKey,
"ColorizationColorBalance");
// Default to balance=78 if reg key isn't defined