tor-browser

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

siblingPath.js (357B)


      1 buildSiblingPath = function(hostPrefix, relativePath, newPort) {
      2  var port = newPort ? newPort : document.location.port;
      3  var path = document.location.pathname.substring(0, document.location.pathname.lastIndexOf('/') + 1);
      4  return (document.location.protocol + '//' + hostPrefix + "." + document.location.hostname + ':' + port + path + relativePath);
      5 };