aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-03-12 10:45:40 +0100
committerstonedDiscord <Tukz@gmx.de>2022-03-12 10:45:40 +0100
commit24721ac2281e2148604524248db6a956294aac08 (patch)
treec50b107f6283f441e01ed58296c0f9707265775e /webAO
parent4bfb6628419c1b758fb97ab04fe190d5ee105d34 (diff)
ignore preanims with empty preanims
Diffstat (limited to 'webAO')
-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);