diff options
-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; |