From 4467a30c219bc4fae610261fbbbf7e9e0138d5a0 Mon Sep 17 00:00:00 2001 From: sD Date: Mon, 6 Jan 2020 16:54:43 +0100 Subject: handle all kinds of empty preanims --- webAO/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webAO/client.js') 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"; -- cgit