mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
pass through regular event functions
This commit is contained in:
parent
0206cea740
commit
66ba606af3
1 changed files with 2 additions and 2 deletions
|
@ -72,9 +72,9 @@ export default function (client: ScramjetClient, self: Self) {
|
|||
}
|
||||
|
||||
args[0] = new Proxy(realEvent, {
|
||||
get(_target, prop, reciever) {
|
||||
get(target, prop, reciever) {
|
||||
if (prop in handler) {
|
||||
return handler[prop].call(_target);
|
||||
return handler[prop].call(target);
|
||||
}
|
||||
|
||||
return Reflect.get(target, prop, reciever);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue