diff options
Diffstat (limited to 'webAO/dom')
| -rw-r--r-- | webAO/dom/changeSFXVolume.js | 10 | ||||
| -rw-r--r-- | webAO/dom/changeVolume.js (renamed from webAO/dom/changeShoutVolume.js) | 9 |
2 files changed, 9 insertions, 10 deletions
diff --git a/webAO/dom/changeSFXVolume.js b/webAO/dom/changeSFXVolume.js deleted file mode 100644 index 0c3009f..0000000 --- a/webAO/dom/changeSFXVolume.js +++ /dev/null @@ -1,10 +0,0 @@ -import setCookie from '../utils/setCookie'; - -/** - * Triggered by the sound effect volume slider. - */ - -export function changeSFXVolume() { - setCookie('sfxVolume', document.getElementById('client_sfxaudio').volume); -} -window.changeSFXVolume = changeSFXVolume; diff --git a/webAO/dom/changeShoutVolume.js b/webAO/dom/changeVolume.js index db67e2d..4ef3027 100644 --- a/webAO/dom/changeShoutVolume.js +++ b/webAO/dom/changeVolume.js @@ -1,6 +1,15 @@ import setCookie from '../utils/setCookie'; /** + * Triggered by the sound effect volume slider. + */ + +export function changeSFXVolume() { + setCookie('sfxVolume', document.getElementById('client_sfxaudio').volume); +} +window.changeSFXVolume = changeSFXVolume; + +/** * Triggered by the shout volume slider. */ |
