tor-browser

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

file_bug1742865_outer.sjs (546B)


      1 function handleRequest(request, response) {
      2   response.write(
      3     `<!DOCTYPE html>
      4 <html>
      5 <head>
      6   <meta charset="utf-8">
      7   <script>
      8     window.addEventListener("message", ({ data }) => {
      9       if (data == "loadNext") {
     10         location.href += "&loadnext=1";
     11         return;
     12       }
     13       // Forward other messages to the frame.
     14       document.getElementById("frame").contentWindow.postMessage(data, "*");
     15     });
     16   </script>
     17 </head>
     18 <body>
     19   <iframe src="file_bug1742865.sjs?${request.queryString}" id="frame"></iframe>
     20 </body>
     21 </html>`
     22   );
     23 }