diff options
Diffstat (limited to 'toolkit/modules/LightweightThemeConsumer.sys.mjs')
-rw-r--r-- | toolkit/modules/LightweightThemeConsumer.sys.mjs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/toolkit/modules/LightweightThemeConsumer.sys.mjs b/toolkit/modules/LightweightThemeConsumer.sys.mjs index c2ad888c22..ea66b05b6f 100644 --- a/toolkit/modules/LightweightThemeConsumer.sys.mjs +++ b/toolkit/modules/LightweightThemeConsumer.sys.mjs @@ -8,7 +8,6 @@ const lazy = {}; // Get the theme variables from the app resource directory. // This allows per-app variables. ChromeUtils.defineESModuleGetters(lazy, { - NimbusFeatures: "resource://nimbus/ExperimentAPI.sys.mjs", PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs", ThemeContentPropertyList: "resource:///modules/ThemeVariableMap.sys.mjs", ThemeVariableMap: "resource:///modules/ThemeVariableMap.sys.mjs", @@ -274,9 +273,7 @@ LightweightThemeConsumer.prototype = { // If enabled, apply the dark theme variant to private browsing windows. if ( - !lazy.NimbusFeatures.majorRelease2022.getVariable( - "feltPrivacyPBMDarkTheme" - ) || + !Services.prefs.getBoolPref("browser.theme.dark-private-windows") || !lazy.PrivateBrowsingUtils.isWindowPrivate(this._win) || lazy.PrivateBrowsingUtils.permanentPrivateBrowsing ) { |