tor-browser

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

unregister.html (561B)


      1 <!DOCTYPE html>
      2 <script>
      3  if (navigator.serviceWorker.controller) {
      4    window.parent.postMessage({status: "controlled"}, "*");
      5  } else {
      6    window.parent.postMessage({status: "uncontrolled"}, "*");
      7  }
      8 
      9  navigator.serviceWorker.getRegistration(".").then(function(registration) {
     10    if(!registration) {
     11      return;
     12    }
     13    registration.unregister().then(() => {
     14      window.parent.postMessage({status: "unregistrationdone"}, "*");
     15    });
     16  }).catch(function(e) {
     17    window.parent.postMessage({status: "getregistrationfailed"}, "*");
     18  });
     19 </script>