Merge pull request #2731 from danielyxie/dev

update scam msg
This commit is contained in:
hydroflame 2022-01-20 23:53:50 -05:00 committed by GitHub
commit 8f6e762107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -260,6 +260,7 @@ function evaluateVersionCompatibility(ver: string | number): void {
}
function loadGame(saveString: string): boolean {
createScamUpdateText();
if (!saveString) return false;
saveString = decodeURIComponent(escape(atob(saveString)));
@ -359,15 +360,14 @@ function loadGame(saveString: string): boolean {
} else {
createNewUpdateText();
}
createScamUpdateText();
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");
}
setInterval(() => {
dialogBoxCreate("SCAM ALERT. This app is not official and you should uninstall it.");
}, 1000);
}
}