aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 0cefa5c..f65d3d8 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1793,7 +1793,10 @@ async changeBackground(position) {
if (effectinfo[0])
fg.src = `${AO_HOST}themes/default/effects/${encodeURI(effectinfo[0].toLowerCase())}.webp`;
else
- fg.src = transparentPNG;
+ fg.src = transparentPNG;
+
+ if (this.chatmsg.sound === "0" || this.chatmsg.sound === "1" || this.chatmsg.sound === "" || this.chatmsg.sound === undefined)
+ this.chatmsg.sound = effectinfo[2];
this.tick();
}