aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2020-11-10 01:47:46 +0100
committerstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2020-11-10 01:47:46 +0100
commita960ee76886457e832734bd24187c0563a63c958 (patch)
tree1689b97618eea7717d13f19865fcc15fd3adac05
parent4c91874c653536a357f0f737190e1ea617df36f5 (diff)
failover and i had the AO_HOST double
-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;