From a960ee76886457e832734bd24187c0563a63c958 Mon Sep 17 00:00:00 2001 From: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> Date: Tue, 10 Nov 2020 01:47:46 +0100 Subject: failover and i had the AO_HOST double --- webAO/client.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'webAO') 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; -- cgit