This commit is contained in:
Percs 2024-07-16 17:42:21 -05:00
parent fa779017ad
commit d6dd1d4ca3
20 changed files with 363 additions and 379 deletions

View file

@ -3,7 +3,11 @@ import { documentProxy, windowProxy } from "./window";
function scope(identifier: any) {
// this will break iframe postmessage!
if (identifier instanceof Window || identifier instanceof top.window.Window || identifier instanceof parent.window.Window) {
if (
identifier instanceof Window ||
identifier instanceof top.window.Window ||
identifier instanceof parent.window.Window
) {
return windowProxy;
} else if (identifier instanceof Location) {
return locationProxy;