mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-01 01:05:06 +08:00
using only pw ads
This commit is contained in:
parent
f1b79f0bd8
commit
2f6fb6ce92
1 changed files with 11 additions and 11 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue