diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-10 20:26:31 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-10 21:30:38 -0400 |
commit | 1dc8bf77ca129555f0e56ef0f890105c14ab94ff (patch) | |
tree | eeb03f1a38fb2a636c1410c3cd57db145c0cc020 /ext/bg/js/settings.js | |
parent | 27c8430915af0a11a5f0c3216053cf3c5f090c50 (diff) |
Add input setting for custom audio source
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r-- | ext/bg/js/settings.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js index 46521f1f..89ba046d 100644 --- a/ext/bg/js/settings.js +++ b/ext/bg/js/settings.js @@ -44,6 +44,7 @@ async function formRead(options) { options.audio.enabled = $('#audio-playback-enabled').prop('checked'); options.audio.autoPlay = $('#auto-play-audio').prop('checked'); options.audio.volume = parseFloat($('#audio-playback-volume').val()); + options.audio.customSourceUrl = $('#audio-custom-source').val(); options.scanning.middleMouse = $('#middle-mouse-button-scan').prop('checked'); options.scanning.touchInputEnabled = $('#touch-input-enabled').prop('checked'); @@ -111,6 +112,7 @@ async function formWrite(options) { $('#audio-playback-enabled').prop('checked', options.audio.enabled); $('#auto-play-audio').prop('checked', options.audio.autoPlay); $('#audio-playback-volume').val(options.audio.volume); + $('#audio-custom-source').val(options.audio.customSourceUrl); $('#middle-mouse-button-scan').prop('checked', options.scanning.middleMouse); $('#touch-input-enabled').prop('checked', options.scanning.touchInputEnabled); |