aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webAO/client.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 4a9e934..f21056b 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2430,8 +2430,10 @@ window.changeShoutVolume = changeShoutVolume;
* Triggered when the shout could not be found
*/
export function shoutMissing(self) {
- self.src = AO_HOST + `${AO_HOST}misc/default/objection.opus`;
- self.play();
+ if (self.src !== `${AO_HOST}misc/default/objection.opus`) {
+ self.src = `${AO_HOST}misc/default/objection.opus`;
+ self.play();
+ }
}
window.shoutMissing = shoutMissing;