Commit 586be474 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 2176: Rebrand Firefox to TorBrowser

Bug 42583: Move moz-support-link change out of the branding commit.
parent 9da24732
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -134,19 +134,6 @@ export default class MozSupportLink extends HTMLAnchorElement {
      return;
    }
    let supportPage = this.getAttribute("support-page") ?? "";
    // For tor-browser we sometimes want to override firefox support links with
    // our own.
    // See tor-browser#40899.
    switch (supportPage) {
      case "preferences":
        // Shown twice in preferences, both as `{ -brand-short-name } Support`.
        // Instead of directing to support for preferences, we link to general
        // tor browser support.
        // See tor-browser#32092.
        this.href = "https://support.torproject.org/tbb"
        return;
      // Fall through to support.mozilla.org
    }
    let base = MozSupportLink.SUPPORT_URL + supportPage;
    this.href = this.hasAttribute("utm-content")
      ? formatUTMParams(this.getAttribute("utm-content"), base)