diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-12 10:45:40 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-12 10:45:40 +0100 |
| commit | 24721ac2281e2148604524248db6a956294aac08 (patch) | |
| tree | c50b107f6283f441e01ed58296c0f9707265775e | |
| parent | 4bfb6628419c1b758fb97ab04fe190d5ee105d34 (diff) | |
ignore preanims with empty preanims
| -rw-r--r-- | webAO/client.js | 3 |
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); |
