tor-browser

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

test_worker.js (370B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 globalThis.onmessage = function (e) {
      7  const { type, message } = e.data;
      8 
      9  if (type === "log-in-worker") {
     10    // Printing `e` so we can check that we have an object and not a stringified version
     11    console.log("[WORKER]", message, e);
     12  }
     13 };