tor-browser

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

fetch-request-html-imports-iframe.html (488B)


      1 <script src="/common/get-host-info.sub.js"></script>
      2 <script type="text/javascript">
      3  var hostInfo = get_host_info();
      4  var makeLink = function(id, url) {
      5      var link = document.createElement('link');
      6      link.rel = 'import'
      7      link.id = id;
      8      link.href = url;
      9      document.documentElement.appendChild(link);
     10    };
     11  makeLink('same', hostInfo.HTTPS_ORIGIN + '/sample-dir/same.html');
     12  makeLink('other', hostInfo.HTTPS_REMOTE_ORIGIN + '/sample-dir/other.html');
     13 </script>