tor-browser

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

empty-but-slow-worker.js (266B)


      1 addEventListener('fetch', evt => {
      2  if (evt.request.url.endsWith('slow')) {
      3    // Performance.now() might be a bit better here, but Date.now() has
      4    // better compat in workers right now.
      5    let start = Date.now();
      6    while(Date.now() - start < 2000);
      7  }
      8 });