tor-browser

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

create-realm.js (380B)


      1 "use strict";
      2 
      3 function createRealm(t) {
      4    return new Promise(resolve => {
      5        const iframe = document.createElement("iframe");
      6        t.add_cleanup(() => { iframe.remove(); });
      7        iframe.onload = () => { resolve(iframe.contentWindow); };
      8        iframe.name = "dummy";
      9        iframe.src = "support/dummy-iframe.html";
     10        document.body.append(iframe);
     11    });
     12 }