console logging choice

This commit is contained in:
Miodec 2023-03-06 18:45:43 +01:00
parent 1e8542d569
commit 7a4fe1d14d

View file

@ -18,14 +18,18 @@ let initialised = false;
export let adBlock: boolean;
export let cookieBlocker: boolean;
// const choice: "eg" | "pw" = Math.random() < 0.5 ? "eg" : "pw";
let choice: "eg" | "pw" = "eg";
let choice: "eg" | "pw" = Math.random() < 0.5 ? "eg" : "pw";
// let choice: "eg" | "pw" = "eg";
console.log("AB choice: " + choice);
const adChoiceForce = window.localStorage.getItem("adChoiceForce");
if (adChoiceForce === "eg") {
choice = "eg";
console.log("AB choice forced: " + choice);
} else if (adChoiceForce === "pw") {
choice = "pw";
console.log("AB choice forced: " + choice);
}
export function init(): void {