diff options
| author | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-11-10 01:47:46 +0100 |
|---|---|---|
| committer | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-11-10 01:47:46 +0100 |
| commit | a960ee76886457e832734bd24187c0563a63c958 (patch) | |
| tree | 1689b97618eea7717d13f19865fcc15fd3adac05 | |
| parent | 4c91874c653536a357f0f737190e1ea617df36f5 (diff) | |
failover and i had the AO_HOST double
| -rw-r--r-- | webAO/client.js | 6 |
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; |
