From b22223ac20ec48ec689ed2792fa6defc82e808c7 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sun, 27 May 2018 20:18:48 +0200 Subject: [PATCH] Make Pale Moon Windows8WindowFrameColor compatible with global scope. This resolves #396. --- application/palemoon/modules/Windows8WindowFrameColor.jsm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/palemoon/modules/Windows8WindowFrameColor.jsm b/application/palemoon/modules/Windows8WindowFrameColor.jsm index d424da499..e7a447db2 100644 --- a/application/palemoon/modules/Windows8WindowFrameColor.jsm +++ b/application/palemoon/modules/Windows8WindowFrameColor.jsm @@ -11,15 +11,15 @@ Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/WindowsRegistry.jsm"); -const Windows8WindowFrameColor = { +var Windows8WindowFrameColor = { _windowFrameColor: null, get_win8: function() { if (this._windowFrameColor) return this._windowFrameColor; - let HKCU = Ci.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER; - let dwmKey = "Software\\Microsoft\\Windows\\DWM"; + const HKCU = Ci.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER; + const dwmKey = "Software\\Microsoft\\Windows\\DWM"; // Window frame base color component values when Color Intensity is at 0. let frameBaseColor = 217;