diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-09 19:39:04 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-09 19:39:04 +0100 |
| commit | 6dd1b296c2dd1d7462dd8514dff43db59ac8dd19 (patch) | |
| tree | 70943c46ba6bdd0267ee9ead838e9ea246b9b501 | |
| parent | 7ab3d2b1cc40a683ebaaeb1df6adce9a30f2df36 (diff) | |
also handle None
| -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 e94ecc4..c10d25b 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] !== '-' && 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.effects[0] && this.chatmsg.effects[0] !== '-' && this.chatmsg.effects[0].toLowerCase() !== '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]; } |
