Skip to content

Commit

Permalink
Update WindowScript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NDevTK authored Nov 8, 2024
1 parent 5ed3483 commit a81c315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WindowScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
}

if (window.parent !== window) {
window.parent.postMessage = new Proxy(window.parent.postMessage, handle('parent'));
window.parent = new Proxy(window.parent, handle('parent'));
}

if (window.opener) {
window.opener.postMessage = new Proxy(window.opener.postMessage, handle('opener'));
window.opener = new Proxy(window.opener, handle('opener'));
}

window.postMessage = new Proxy(window.postMessage, handle('self'));
Expand Down

0 comments on commit a81c315

Please sign in to comment.