fixed ws record

This commit is contained in:
Devaev Maxim 2020-06-20 12:05:35 +03:00
parent ec3890e0e6
commit 8d34615c6f

View File

@ -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;