mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
fixed ws record
This commit is contained in:
@@ -219,7 +219,7 @@ export function Recorder() {
|
|||||||
}
|
}
|
||||||
}, event.event.text, "text/plain");
|
}, event.event.text, "text/plain");
|
||||||
return;
|
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));
|
__ws.send(JSON.stringify(event));
|
||||||
}
|
}
|
||||||
index += 1;
|
index += 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user