aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-08-17 20:26:26 +0200
committersD <stoned@derpymail.org>2020-08-17 20:26:26 +0200
commitc48e3a93c514ae94da86a79b7794dcbdfd4abc55 (patch)
treecad20300d400b91ceebe8bd986a7ac4d3349ff2f
parent75918e87c8e5b867b82515ddecfe119295f10c02 (diff)
ignore empty overlays
-rw-r--r--webAO/client.js2
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;