mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 16:26:18 +08:00
console logging choice
This commit is contained in:
parent
1e8542d569
commit
7a4fe1d14d
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue