diff options
author | Devaev Maxim <[email protected]> | 2020-06-20 12:05:35 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-06-20 12:05:35 +0300 |
commit | 8d34615c6f35b9d7fb2c4a23489111a43d1bbbcc (patch) | |
tree | e4fcf95a5848952e7222f4124c13f8c4eafcdcc4 | |
parent | ec3890e0e65fa773d9b21ca88e26ebad7d34dc16 (diff) |
fixed ws record
-rw-r--r-- | web/share/js/kvm/recorder.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/recorder.js b/web/share/js/kvm/recorder.js index ea5b956b..7042b0ae 100644 --- a/web/share/js/kvm/recorder.js +++ b/web/share/js/kvm/recorder.js @@ -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; |