mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fixed ws record
This commit is contained in:
parent
ec3890e0e6
commit
8d34615c6f
@ -219,7 +219,7 @@ export function Recorder() {
|
||||
}
|
||||
}, event.event.text, "text/plain");
|
||||
return;
|
||||
} else if (event.event_type in ["key", "mouse_button", "mouse_move", "mouse_wheel"]) {
|
||||
} else if (["key", "mouse_button", "mouse_move", "mouse_wheel"].includes(event.event_type)) {
|
||||
__ws.send(JSON.stringify(event));
|
||||
}
|
||||
index += 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user