summaryrefslogtreecommitdiff
path: root/web/share/js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-06-20 12:05:35 +0300
committerDevaev Maxim <[email protected]>2020-06-20 12:05:35 +0300
commit8d34615c6f35b9d7fb2c4a23489111a43d1bbbcc (patch)
treee4fcf95a5848952e7222f4124c13f8c4eafcdcc4 /web/share/js
parentec3890e0e65fa773d9b21ca88e26ebad7d34dc16 (diff)
fixed ws record
Diffstat (limited to 'web/share/js')
-rw-r--r--web/share/js/kvm/recorder.js2
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;