Commit 22cb1037 authored by lamby's avatar lamby Committed by sajolida
Browse files

Use relative URI for download counter. (re. #14922)

This will let it work over Tor (etc. as well as to ease local development)
due to cross-site request prevention / CORS, etc. etc.
parent ab91704a
......@@ -173,7 +173,7 @@ document.addEventListener("DOMContentLoaded", function() {
function hitCounter(status) {
try {
var counter_url, url, scenario, version, cachebust;
counter_url = "";
counter_url = "/install/download/counter";
url = window.location.href.split("/");
scenario = url[url.lastIndexOf("install") + 1];
version = document.getElementById("tails-version").textContent.replace("\n", "");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment