tor-browser

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

import-scripts-404-after-update.js (311B)


      1 // This worker imports a script that returns 200 on the first request and 404
      2 // on the second request. The resulting body also changes each time it is
      3 // requested.
      4 const params = new URLSearchParams(location.search);
      5 const key = params.get('Key');
      6 importScripts(`update-worker.py?Key=${key}&Mode=not_found`);