diff options
Diffstat (limited to 'webAO/dom/changeSFXVolume.js')
| -rw-r--r-- | webAO/dom/changeSFXVolume.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/dom/changeSFXVolume.js b/webAO/dom/changeSFXVolume.js new file mode 100644 index 0000000..0c3009f --- /dev/null +++ b/webAO/dom/changeSFXVolume.js @@ -0,0 +1,10 @@ +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; |
