Fix check for "True Recursion" achievement (#827)

This commit is contained in:
Jesse Clark 2023-10-02 22:29:09 -07:00 committed by GitHub
parent a4e9fd9705
commit f4cd4b3362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
} }
}); });