no blank messages
This commit is contained in:
parent
b67a441e0c
commit
0d5a1028ae
|
@ -72,10 +72,12 @@ async function sendMessage(content, id) {
|
|||
|
||||
messageBox.addEventListener("keyup", function onEvent(event) {
|
||||
if (event.key === "Enter") {
|
||||
if (!messageBox.value == "") {
|
||||
sendMessage(messageBox.value, channelID)
|
||||
updateMessages(channelID)
|
||||
messageBox.value = ""
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function update() {
|
||||
|
|
Reference in New Issue