From 24721ac2281e2148604524248db6a956294aac08 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Sat, 12 Mar 2022 10:45:40 +0100 Subject: ignore preanims with empty preanims --- webAO/client.js | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit