tor-browser

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

test-console-workers.html (600B)


      1 <!-- Any copyright is dedicated to the Public Domain.
      2     http://creativecommons.org/publicdomain/zero/1.0/ -->
      3 <!DOCTYPE HTML>
      4 <html dir="ltr" xml:lang="en-US" lang="en-US"><head>
      5    <meta charset="utf-8">
      6    <title>Console test</title>
      7  </head>
      8  <body>
      9    <script type="text/javascript">
     10      "use strict";
     11 
     12      /* exported logFromWorker */
     13      const worker = new Worker("./test-worker.js");
     14 
     15      function logFromWorker(message) {
     16        const sab = new SharedArrayBuffer(1024);
     17        worker.postMessage({type: "log-objects", message, sab});
     18      }
     19    </script>
     20  </body>
     21 </html>