From 7ab3d2b1cc40a683ebaaeb1df6adce9a30f2df36 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 9 Mar 2022 19:34:18 +0100 Subject: do not display empty effects --- 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 03a953f..e94ecc4 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -2239,7 +2239,7 @@ class Viewport { // apply effects fg.style.animation = ''; - if (this.chatmsg.effects[0] && this.chatmsg.effects[0] !== '-') { fg.src = `${AO_HOST}themes/default/effects/${encodeURI(this.chatmsg.effects[0].toLowerCase())}.webp`; } else { fg.src = transparentPNG; } + if (this.chatmsg.effects[0] && this.chatmsg.effects[0] !== '-' && this.chatmsg.effects[0] !== 'none' ) { fg.src = `${AO_HOST}themes/default/effects/${encodeURI(this.chatmsg.effects[0].toLowerCase())}.webp`; } else { fg.src = transparentPNG; } if (this.chatmsg.sound === '0' || this.chatmsg.sound === '1' || this.chatmsg.sound === '' || this.chatmsg.sound === undefined) { this.chatmsg.sound = this.chatmsg.effects[2]; } -- cgit