mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-11 21:40:02 -04:00
fix: apply fix to all functions on proxied event
This commit is contained in:
parent
b022d5fe06
commit
02ae723a41
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ export default function (client: ScramjetClient, self: Self) {
|
|||
return handler[prop].call(target);
|
||||
}
|
||||
|
||||
if (prop in Event.prototype && typeof value === "function") {
|
||||
if (typeof value === "function") {
|
||||
return new Proxy(value, {
|
||||
apply(target, that, args) {
|
||||
if (that === reciever) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue