diff options
| author | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-12-29 21:40:31 +0100 |
|---|---|---|
| committer | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-12-29 21:40:31 +0100 |
| commit | 15e66c059f84a362e3d38dd483f224c6b9ca43b6 (patch) | |
| tree | 700c6441677f9ebeb45663315b577ed8f4edc290 /webAO | |
| parent | 4c6e3d21d633b4935319a8332aa4f68292709c57 (diff) | |
shoutMissing was a mistake
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.html | 2 | ||||
| -rw-r--r-- | webAO/client.js | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/webAO/client.html b/webAO/client.html index 2c689d2..6ab9dc5 100644 --- a/webAO/client.html +++ b/webAO/client.html @@ -372,7 +372,7 @@ <audio id="client_sfxaudio" onvolumechange="changeSFXVolume()" controls></audio> <p>Shouts</p> - <audio id="client_shoutaudio" onvolumechange="changeShoutVolume()" onerror="shoutMissing(this)" controls></audio> + <audio id="client_shoutaudio" onvolumechange="changeShoutVolume()" controls></audio> <p>Testimony/Guilty</p> <audio id="client_testimonyaudio" onvolumechange="changeTestimonyVolume()" controls></audio> diff --git a/webAO/client.js b/webAO/client.js index dd4d486..3294a81 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -2459,17 +2459,6 @@ export function changeShoutVolume() { window.changeShoutVolume = changeShoutVolume; /** - * Triggered when the shout could not be found - */ -export function shoutMissing(self) { - if (self.src !== `${AO_HOST}misc/default/objection.opus`) { - self.src = `${AO_HOST}misc/default/objection.opus`; - self.play(); - } -} -window.shoutMissing = shoutMissing; - -/** * Triggered by the testimony volume slider. */ export function changeTestimonyVolume() { |
