tor-browser

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

archive.js (914B)


      1 /**
      2 #if 0
      3 #
      4 # This Source Code Form is subject to the terms of the Mozilla Public
      5 # License, v. 2.0. If a copy of the MPL was not distributed with this
      6 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
      7 #
      8 # This file is used to construct the single-file archive of a backup. This
      9 # file is part of our source code, and so this is why we include the license
     10 # header above. We do not, however, want to apply the header to backup files
     11 # that are generated via this template. This is why we use the pre-processor
     12 # mechanism to remove this comment block at build time.
     13 #
     14 #endif
     15 */
     16 
     17 const UA = navigator.userAgent;
     18 const isMozBrowser = /Firefox/.test(UA);
     19 
     20 document.body.toggleAttribute("is-moz-browser", isMozBrowser);
     21 
     22 const filePath = decodeURI(document.location.pathname);
     23 const filePathNode = document.getElementById("backup-file-path-value");
     24 if (filePathNode) {
     25  filePathNode.innerText = filePath;
     26 }