Merge pull request #2730 from danielyxie/dev

update to prevent scam
This commit is contained in:
hydroflame 2022-01-20 23:43:47 -05:00 committed by GitHub
commit 97f8144baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(
() => () =>