tor-browser

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

aboutRobots.js (511B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 var buttonClicked = false;
      6 var button = document.getElementById("errorTryAgain");
      7 button.onclick = function () {
      8  if (buttonClicked) {
      9    button.style.visibility = "hidden";
     10  } else {
     11    var newLabel = button.getAttribute("label2");
     12    button.textContent = newLabel;
     13    buttonClicked = true;
     14  }
     15 };