From c3fc250b0ccc71542d7838ff7395350992b65afa Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sun, 27 May 2018 20:18:48 +0200 Subject: Make Pale Moon Windows8WindowFrameColor compatible with global scope. This resolves #396. --- application/palemoon/modules/Windows8WindowFrameColor.jsm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'application/palemoon') 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; -- cgit v1.2.3