mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +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 {
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user