aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-01-06 16:54:43 +0100
committersD <stoned@derpymail.org>2020-01-06 16:54:43 +0100
commit4467a30c219bc4fae610261fbbbf7e9e0138d5a0 (patch)
treeaeb803bb6196089a6145127d47ae5279359b5b80 /webAO/client.js
parenta47cf9152b45380f81e7ab15586b05fde3636d82 (diff)
handle all kinds of empty preanims
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index e6fa3c4..8bcd4fe 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1253,7 +1253,7 @@ class Viewport {
this.chatmsg.startpreanim = true;
// If preanim existed then determine the length
- if (this.chatmsg.preanim !== "-") {
+ if (this.chatmsg.preanim !== "-" && this.chatmsg.preanim !== "" && this.chatmsg.preanim !== undefined) {
// Hide message box
nameBox.style.display = "none";
chatBox.style.display = "none";