aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;