From 02ae723a418c04ef859789236d069d4abdeabfe4 Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Tue, 29 Apr 2025 13:52:43 -0500 Subject: [PATCH] fix: apply fix to all functions on proxied event --- src/client/shared/event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/shared/event.ts b/src/client/shared/event.ts index 4b4ffc3..500123e 100644 --- a/src/client/shared/event.ts +++ b/src/client/shared/event.ts @@ -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) {