From bc2ed6278099e0656f63099f1b7b37330b2a0309 Mon Sep 17 00:00:00 2001 From: Konrad Dzwinel Date: Wed, 23 Oct 2024 13:26:45 +0200 Subject: [PATCH] Bounce to https websites (only use http for testing). (#238) --- privacy-protections/bounce-tracking/bounce.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/privacy-protections/bounce-tracking/bounce.html b/privacy-protections/bounce-tracking/bounce.html index 5f65725..8968ee2 100644 --- a/privacy-protections/bounce-tracking/bounce.html +++ b/privacy-protections/bounce-tracking/bounce.html @@ -60,7 +60,7 @@ if (!destinationSafelist.includes(destination)) { say(`Invalid destination '${destination}'.`); } else { - const redirectURL = new URL(`/privacy-protections/bounce-tracking/?bounceUIDlocalStorage=${lsUID}&bounceUIDcookie=${cookieUID}&isNew=${newID}`, 'http://' + destination); + const redirectURL = new URL(`/privacy-protections/bounce-tracking/?bounceUIDlocalStorage=${lsUID}&bounceUIDcookie=${cookieUID}&isNew=${newID}`, `http${(destination === '127.0.0.1:3000') ? '' : 's'}://` + destination); say(`Redirecting to '${redirectURL.toString()}'.`); setTimeout(() => { location.href = redirectURL; }, delay);