prevent sending or logging of empty chats
This commit is contained in:
parent
5c936df3f6
commit
cdaa7c678d
2 changed files with 2 additions and 1 deletions
|
@ -315,6 +315,7 @@ composeBox.addEventListener("keypress", event => {
|
|||
});
|
||||
|
||||
function sendChat(msg) {
|
||||
if (msg === "") return;
|
||||
setTimeout(() => {
|
||||
if (!ws) return;
|
||||
ws.send(JSON.stringify({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue