tor-browser

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

iam.js (898B)


      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 "use strict";
      6 
      7 /**
      8 * Bug 1761774 - Shim INFOnline IAM tracker
      9 *
     10 * Sites using IAM can break if it is blocked. This shim mitigates that
     11 * breakage by loading a stand-in module.
     12 */
     13 
     14 if (!window.iom?.c) {
     15  window.iom = {
     16    c: () => {},
     17    consent: () => {},
     18    count: () => {},
     19    ct: () => {},
     20    deloptout: () => {},
     21    doo: () => {},
     22    e: () => {},
     23    event: () => {},
     24    getInvitation: () => {},
     25    getPlus: () => {},
     26    gi: () => {},
     27    gp: () => {},
     28    h: () => {},
     29    hybrid: () => {},
     30    i: () => {},
     31    init: () => {},
     32    oi: () => {},
     33    optin: () => {},
     34    setMultiIdentifier: () => {},
     35    setoptout: () => {},
     36    smi: () => {},
     37    soo: () => {},
     38  };
     39 }