Verified Commit 6763253e authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by boklm
Browse files

fixup! MB 329: Customize toolbar for mullvad-browser.

MB 514: Remove new identity from Mullvad Browser.
parent 9d8faf6a
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ const NoScriptId = "_73a6fe31-595d-460b-a920-fcc0f8843232_-browser-action";
/**
 * The current version for mullvad browser.
 */
var kVersionMullvadBrowser = 1;
var kVersionMullvadBrowser = 2;

/**
 * Buttons removed from built-ins by version they were removed. kVersion must be
@@ -1149,6 +1149,17 @@ var CustomizableUIInternal = {
        }
      }
    }

    if (currentVersion < 2) {
      // mullvad-browser#514: Clean up the new-identity-button placement, which
      // no longer exists.
      for (const placements of Object.values(gSavedState.placements)) {
        const buttonIndex = placements.indexOf("new-identity-button");
        if (buttonIndex !== -1) {
          placements.splice(buttonIndex, 1);
        }
      }
    }
  },

  /**