aboutsummaryrefslogtreecommitdiff
path: root/test-client/main.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-26 00:51:58 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-26 00:51:58 +0200
commit6b40114823cac61a92756af55e06a645a3847426 (patch)
treefa697466770fed2e32b1526a4165ad0bbfe60f80 /test-client/main.ts
parent6da91829db06cfc319b614c5f8a238c049ff94c8 (diff)
downloadhurrycurry-6b40114823cac61a92756af55e06a645a3847426.tar
hurrycurry-6b40114823cac61a92756af55e06a645a3847426.tar.bz2
hurrycurry-6b40114823cac61a92756af55e06a645a3847426.tar.zst
clear message
Diffstat (limited to 'test-client/main.ts')
-rw-r--r--test-client/main.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/test-client/main.ts b/test-client/main.ts
index 0f841b06..04cd2331 100644
--- a/test-client/main.ts
+++ b/test-client/main.ts
@@ -214,6 +214,7 @@ function close_chat() {
function toggle_chat() {
if (chat) {
if (chat.value.length) send({ type: "communicate", message: { text: chat.value } })
+ else send({ type: "communicate" })
chat.remove()
canvas.focus()
chat = null;