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

View File

@@ -14,7 +14,7 @@ const style = {
export function BBCabinetRoot(): React.ReactElement {
useEffect(() => {
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);
}
});