tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mdn.mjs (550B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 /**
      6 * Get a URLSearchParams instance with the proper utm_* parameters
      7 *
      8 * @param {string} utmMedium: value for the "utm_medium" parameter
      9 * @returns {URLSearchParams}
     10 */
     11 export function getMdnLinkParams(utmMedium) {
     12  return new URLSearchParams({
     13    utm_source: "devtools",
     14    utm_medium: utmMedium,
     15    utm_campaign: "default",
     16  });
     17 }