diff options
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 { |
