Skip to content

Commit

Permalink
Bounce to https websites (only use http for testing). (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdzwinel authored Oct 23, 2024
1 parent 9de7f17 commit bc2ed62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion privacy-protections/bounce-tracking/bounce.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bc2ed62

Please sign in to comment.