tor-browser

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

allowMedia.sjs (411B)


      1 /* Any copyright is dedicated to the Public Domain.
      2  * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 function handleRequest(req, resp) {
      5   resp.setHeader("Cache-Control", "no-cache", false);
      6   resp.setHeader("Content-Type", "text/plain", false);
      7 
      8   let stateKey = "allowMediaState";
      9   let state = getState(stateKey);
     10   setState(stateKey, req.queryString ? "FAIL" : "");
     11   resp.write(state || "PASS");
     12 }