mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 11:03:48 +01:00
update scam msg
This commit is contained in:
parent
a3c599e6c5
commit
07fe3c1906
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 {
|
function loadGame(saveString: string): boolean {
|
||||||
|
createScamUpdateText();
|
||||||
if (!saveString) return false;
|
if (!saveString) return false;
|
||||||
saveString = decodeURIComponent(escape(atob(saveString)));
|
saveString = decodeURIComponent(escape(atob(saveString)));
|
||||||
|
|
||||||
@ -359,15 +360,14 @@ function loadGame(saveString: string): boolean {
|
|||||||
} else {
|
} else {
|
||||||
createNewUpdateText();
|
createNewUpdateText();
|
||||||
}
|
}
|
||||||
createScamUpdateText();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createScamUpdateText(): void {
|
function createScamUpdateText(): void {
|
||||||
if (navigator.userAgent.indexOf("wv") !== -1 && navigator.userAgent.indexOf("Chrome/") !== -1) {
|
if (navigator.userAgent.indexOf("wv") !== -1 && navigator.userAgent.indexOf("Chrome/") !== -1) {
|
||||||
for (let i = 0; i < 100; i++) {
|
setInterval(() => {
|
||||||
dialogBoxCreate("SCAM ALERT");
|
dialogBoxCreate("SCAM ALERT. This app is not official and you should uninstall it.");
|
||||||
}
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user