aboutsummaryrefslogtreecommitdiff
path: root/webAO/viewport/utils
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2023-01-23 14:39:08 +0100
committerstonedDiscord <Tukz@gmx.de>2023-01-23 14:39:08 +0100
commit3600fe4e479c8da1bd8f7f6d648cb352b506228b (patch)
tree9d0b9f7e56669c069d8443d73a5abb879be9360d /webAO/viewport/utils
parentb81480a194a144fc0894b1457018d89ecc406673 (diff)
handle blankposts that are only spaces
Diffstat (limited to 'webAO/viewport/utils')
-rw-r--r--webAO/viewport/utils/handleICSpeaking.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/viewport/utils/handleICSpeaking.ts b/webAO/viewport/utils/handleICSpeaking.ts
index 83c216d..e2d147d 100644
--- a/webAO/viewport/utils/handleICSpeaking.ts
+++ b/webAO/viewport/utils/handleICSpeaking.ts
@@ -157,7 +157,7 @@ export const handle_ic_speaking = async (playerChatMsg: ChatMsg) => {
client.viewport.getChatmsg().startspeaking = false;
} else {
client.viewport.getChatmsg().startspeaking = true;
- if (client.viewport.getChatmsg().content !== "") chatContainerBox.style.opacity = "1";
+ if (client.viewport.getChatmsg().content.trim() !== "") chatContainerBox.style.opacity = "1";
}
client.viewport.getChatmsg().preanimdelay = gifLength;
const setAside = {