tor-browser

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

early_hint_pixel_count.sjs (317B)


      1 "use strict";
      2 
      3 function handleRequest(request, response) {
      4   if (request.hasHeader("X-Early-Hint-Count-Start")) {
      5     setSharedState("earlyHintCount", JSON.stringify({ hinted: 0, normal: 0 }));
      6   }
      7   response.setHeader("Content-Type", "application/json", false);
      8   response.write(getSharedState("earlyHintCount"));
      9 }