update to prevent scam

This commit is contained in:
Olivier Gagnon 2022-01-20 23:43:19 -05:00
parent f7d18efaf6
commit a3c599e6c5
3 changed files with 11 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -359,9 +359,18 @@ function loadGame(saveString: string): boolean {
} else { } else {
createNewUpdateText(); createNewUpdateText();
} }
createScamUpdateText();
return true; return true;
} }
function createScamUpdateText(): void {
if (navigator.userAgent.indexOf("wv") !== -1 && navigator.userAgent.indexOf("Chrome/") !== -1) {
for (let i = 0; i < 100; i++) {
dialogBoxCreate("SCAM ALERT");
}
}
}
function createNewUpdateText(): void { function createNewUpdateText(): void {
setTimeout( setTimeout(
() => () =>