mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
bug fixes
This commit is contained in:
parent
20caf32b5b
commit
b293eea0bd
2 changed files with 9 additions and 15 deletions
|
@ -9,6 +9,14 @@ export const windowProxy = new Proxy(window, {
|
|||
return windowProxy;
|
||||
} else if (propIsString && prop === "$scramjet") {
|
||||
return;
|
||||
} else if (propIsString && prop === "addEventListener") {
|
||||
console.log("addEventListener getteetetetetet")
|
||||
|
||||
return new Proxy(window.addEventListener, {
|
||||
apply(target1, thisArg, argArray) {
|
||||
window.addEventListener(argArray[0], argArray[1]);
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
return target[prop];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue