tor-browser

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

file_broadcast_load.html (389B)


      1 <!DOCTYPE html>
      2 <h1>file_broadcast_load.html</h1>
      3 <script>
      4 let channel = new BroadcastChannel("test");
      5 channel.onmessage = function(e) {
      6  console.log("file_broadcast_load.html got message:", e.data);
      7  if (e.data == "close") {
      8    window.close();
      9  }
     10 };
     11 
     12 addEventListener("load", function() {
     13  console.log("file_broadcast_load.html loaded");
     14  channel.postMessage("load");
     15 });
     16 </script>