tor-browser

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

resource-cleanup.html (352B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta charset="utf-8">
      4 <title>Redirect destination for non-HTML documents to close themselves</title>
      5 <script>
      6 'use strict';
      7 const channel = new URL(location).searchParams.get('channel');
      8 const bc = new BroadcastChannel(channel);
      9 bc.onmessage = () => close();
     10 bc.postMessage({name: 'FAIL', closed: 'FAIL' });
     11 </script>