Verified Commit 0303cdbf authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! MB 1: Mullvad Browser branding

MB 244: Fix the link to Mullvad Browser Support
parent 889c419e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -103,6 +103,12 @@ export default class MozSupportLink extends HTMLAnchorElement {

  #setHref() {
    let supportPage = this.getAttribute("support-page") ?? "";
    // Customize the link in about:preferences.
    // See mullvad-browser#244 and tor-browser#41910.
    if (supportPage === "preferences") {
      this.href = "https://mullvad.net/en/help/";
      return;
    }
    let base = MozSupportLink.SUPPORT_URL + supportPage;
    this.href = this.hasAttribute("utm-content")
      ? formatUTMParams(this.getAttribute("utm-content"), base)