mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
Fix check for "True Recursion" achievement (#827)
This commit is contained in:
parent
a4e9fd9705
commit
f4cd4b3362
@ -14,7 +14,7 @@ const style = {
|
|||||||
export function BBCabinetRoot(): React.ReactElement {
|
export function BBCabinetRoot(): React.ReactElement {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.addEventListener("message", function (this: Window, ev: MessageEvent<boolean>) {
|
window.addEventListener("message", function (this: Window, ev: MessageEvent<boolean>) {
|
||||||
if (ev.isTrusted && ev.origin == "https://bitburner-official.github.io" && ev.data) {
|
if (ev.isTrusted && ev.origin == "https://bitburner-official.github.io" && ev.data === true) {
|
||||||
Player.giveExploit(Exploit.TrueRecursion);
|
Player.giveExploit(Exploit.TrueRecursion);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user