From 2f6fb6ce929f3053576e19f9a6997304f4ae3fcc Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 12 Jul 2023 19:54:30 +0200 Subject: [PATCH] using only pw ads --- frontend/src/ts/controllers/ad-controller.ts | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/src/ts/controllers/ad-controller.ts b/frontend/src/ts/controllers/ad-controller.ts index b3e251a7a..6b31ef2f2 100644 --- a/frontend/src/ts/controllers/ad-controller.ts +++ b/frontend/src/ts/controllers/ad-controller.ts @@ -18,19 +18,19 @@ let initialised = false; export let adBlock: boolean; export let cookieBlocker: boolean; -export let choice: "eg" | "pw" = Math.random() < 0.5 ? "eg" : "pw"; -// export const choice: "eg" | "pw" = "eg"; +// export let choice: "eg" | "pw" = Math.random() < 0.5 ? "eg" : "pw"; +export const choice: "eg" | "pw" = "pw"; -console.log("AB choice: " + choice); +// 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); -} +// 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 { if (choice === "eg") {