diff options
| author | sD <stoned@derpymail.org> | 2020-08-17 20:26:26 +0200 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-08-17 20:26:26 +0200 |
| commit | c48e3a93c514ae94da86a79b7794dcbdfd4abc55 (patch) | |
| tree | cad20300d400b91ceebe8bd986a7ac4d3349ff2f /webAO | |
| parent | 75918e87c8e5b867b82515ddecfe119295f10c02 (diff) | |
ignore empty overlays
Diffstat (limited to 'webAO')
| -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 2b2699b..e1842ba 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1781,7 +1781,7 @@ async changeBackground(position) { const effectinfo = this.chatmsg.effects.split('|'); fg.style.animation = ""; - if (effectinfo[0]) + if (effectinfo[0] && effectinfo[0] !== "-") fg.src = `${AO_HOST}themes/default/effects/${encodeURI(effectinfo[0].toLowerCase())}.webp`; else fg.src = transparentPNG; |
