postmessage handler

This commit is contained in:
velzie 2024-07-18 18:24:03 -04:00
parent bcbb660cc6
commit 73c1c8a5c8
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
4 changed files with 12 additions and 6 deletions

View file

@ -15,12 +15,6 @@ export const windowProxy = new Proxy(window, {
return window.parent;
} else if (propIsString && prop === "$scramjet") {
return;
} else if (propIsString && prop === "addEventListener") {
return new Proxy(window.addEventListener, {
apply(target1, thisArg, argArray) {
window.addEventListener(argArray[0], argArray[1]);
},
});
}
const value = Reflect.get(target, prop);