Bug fixes

This commit is contained in:
redphx
2024-04-24 18:03:44 +07:00
parent d376e4b8be
commit 563a398975
2 changed files with 1 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ function setupQuickSettingsBar() {
pref: PrefKey.AUDIO_VOLUME,
label: t('volume'),
onChange: (e: any, value: number) => {
STATES.currentStream && (STATES.currentStream.audioGainNode!.gain.value = value / 100)
STATES.currentStream.audioGainNode && (STATES.currentStream.audioGainNode.gain.value = value / 100);
},
params: {
disabled: !getPref(PrefKey.AUDIO_ENABLE_VOLUME_CONTROL),