Browse Source

Make Pale Moon Windows8WindowFrameColor compatible with global scope.

This resolves #396.
pull/1/head
wolfbeast 4 years ago committed by Roy Tam
parent
commit
b22223ac20
  1. 6
      application/palemoon/modules/Windows8WindowFrameColor.jsm

6
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;

Loading…
Cancel
Save