mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
parent
a7f882a3c5
commit
f5d4f00ae8
4 changed files with 12 additions and 18 deletions
|
@ -15,6 +15,12 @@ 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue