pass through regular event functions

This commit is contained in:
Percs 2025-04-28 12:06:20 -05:00 committed by GitHub
parent 0206cea740
commit 66ba606af3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,9 +72,9 @@ export default function (client: ScramjetClient, self: Self) {
} }
args[0] = new Proxy(realEvent, { args[0] = new Proxy(realEvent, {
get(_target, prop, reciever) { get(target, prop, reciever) {
if (prop in handler) { if (prop in handler) {
return handler[prop].call(_target); return handler[prop].call(target);
} }
return Reflect.get(target, prop, reciever); return Reflect.get(target, prop, reciever);