tor-browser

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

sse_frontend_iframe.html (863B)


      1 <!-- Any copyright is dedicated to the Public Domain.
      2     http://creativecommons.org/publicdomain/zero/1.0/ -->
      3 <!doctype HTML>
      4 <html>
      5  <head>
      6      <meta charset="utf-8"/>
      7      <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
      8      <meta http-equiv="Pragma" content="no-cache" />
      9      <meta http-equiv="Expires" content="0" />
     10      <title>SSE Inspection Test Page in iframe</title>
     11  </head>
     12  <body>
     13    <h1>SSE Inspection Test Page in Iframe</h1>
     14    <script type="text/javascript">
     15      "use strict";
     16 
     17      /* exported openConnection */
     18      function openConnection() {
     19        return new Promise(resolve => {
     20          const es = new EventSource("sse_backend.sjs");
     21          es.onmessage = function () {
     22            es.close();
     23            resolve();
     24          };
     25        });
     26      }
     27    </script>
     28  </body>
     29 </html>