diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-11 20:51:16 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-11 20:51:16 +0100 |
| commit | 050c9a7ee182d6e9f6a49c2731ceb9310c5376d9 (patch) | |
| tree | fbc934aa24f38d116f0d288dbbff723c5b70e590 /webAO/client.js | |
| parent | 2208efda7db95023319af774fb32832e47dd8b55 (diff) | |
fix effects
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index 41d7625..7b0c9cd 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -2097,8 +2097,8 @@ class Viewport { // apply effects fg.style.animation = ''; - const badEffects = ['-', 'none']; - if (this.chatmsg.effects[0] && !badEffects.includes(this.chatmsg.effects[i].toLowerCase())) { + const badEffects = ['', '-', 'none']; + if (this.chatmsg.effects[0] && !badEffects.includes(this.chatmsg.effects[0].toLowerCase())) { const baseEffectUrl = `${AO_HOST}themes/default/effects/`; fg.src = `${baseEffectUrl}${encodeURI(this.chatmsg.effects[0].toLowerCase())}.webp`; } else { |
