tor-browser

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

broadcast_handler.sys.mjs (274B)


      1 export var broadcastHandler = {
      2  reset() {
      3    this.notifications = [];
      4 
      5    this.wasNotified = new Promise(resolve => {
      6      this.receivedBroadcastMessage = function () {
      7        resolve();
      8        this.notifications.push(Array.from(arguments));
      9      };
     10    });
     11  },
     12 };