diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-09 19:34:18 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-09 19:34:18 +0100 |
| commit | 7ab3d2b1cc40a683ebaaeb1df6adce9a30f2df36 (patch) | |
| tree | 775826d45fc3827e69eae93662448df9cac5db83 /webAO/client.js | |
| parent | cb18a3eabd94d91604395000c0e9ef527e1ef240 (diff) | |
do not display empty effects
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |
