Commit 88ba88fd authored by Dão Gottwald's avatar Dão Gottwald
Browse files

Bug 1779282 - Make the Independent Voices colorways collection available in...

Bug 1779282 - Make the Independent Voices colorways collection available in Nightly only, independently from the colorway closet pref. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D153091
parent b6c71fb0
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -6,6 +6,10 @@

const EXPORTED_SYMBOLS = ["_applyColorwayConfig", "BuiltInThemeConfig"];

const { AppConstants } = ChromeUtils.import(
  "resource://gre/modules/AppConstants.jsm"
);

/**
 * A Map of themes built in to the browser, alongwith a Map of collections those themes belong to. Params for the objects contained
 * within the map:
@@ -489,10 +493,6 @@ const BuiltInThemeConfig = new Map([
  ],
]);

const colorwayClosetEnabled = Services.prefs.getBoolPref(
  "browser.theme.colorway-closet"
);

const ColorwayCollections = [
  {
    id: "life-in-color",
@@ -504,7 +504,7 @@ const ColorwayCollections = [
  },
  {
    id: "independent-voices",
    expiry: colorwayClosetEnabled ? "2023-01-24" : "1970-01-01",
    expiry: AppConstants.NIGHTLY_BUILD ? "2023-01-24" : "1970-01-01",
    l10nId: {
      title: "colorway-collection-independent-voices",
      description: "colorway-collection-independent-voices-description",