tor-browser

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

addthis-angular.js (524B)


      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 1713694 - Shim AddThis Angular module
      9 *
     10 * Sites using Angular with AddThis can break entirely if the module is
     11 * blocked. This shim mitigates that breakage by loading an empty module.
     12 */
     13 
     14 if (!window.addthisModule) {
     15  window.addthisModule = window?.angular?.module("addthis", ["ng"]);
     16 }