aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webAO/client.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index d6ab5fb..aad049b 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2027,14 +2027,13 @@ class Viewport {
this.chatmsg.startpreanim = true;
let gifLength = 0;
- if (this.chatmsg.type === 1) {
+ if (this.chatmsg.type === 1 && this.chatmsg.preanim !== '-') {
chatContainerBox.style.opacity = 0;
gifLength = await getAnimLength(`${AO_HOST}characters/${encodeURI(this.chatmsg.name.toLowerCase())}/${encodeURI(this.chatmsg.preanim)}`);
this.chatmsg.startspeaking = false;
} else {
this.chatmsg.startspeaking = true;
}
- console.log(gifLength);
this.chatmsg.preanimdelay = parseInt(gifLength);
this.changeBackground(chatmsg.side);