diff --git a/frontend/index.html b/frontend/index.html index f7d2068..c866db6 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -293,8 +293,10 @@
} function sendCommand() { - websocket.send(document.getElementById("command-text").value); + const input = document.getElementById("command-text"); + websocket.send(input.value); + input.value = ""; } -