Skip to content

Commit 1fc68a3

Browse files
authored
If the system volume was set to 0, change the state of the "Mute" icon in the volume slider (MonitorStream.js)
1 parent 5561829 commit 1fc68a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/js/MonitorStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ function MonitorStream(monitorData) {
10291029
volumeSlider.setAttribute('data-volume', parseInt(audioStream.volume * 100));
10301030
if (volumeSlider.allowSetValue) {
10311031
volumeSlider.noUiSlider.set(audioStream.volume * 100);
1032-
if (audioStream.muted === true) {
1032+
if (audioStream.muted === true || audioStream.volume === 0) {
10331033
this.changeStateIconMute('off');
10341034
volumeSlider.classList.add('noUi-mute');
10351035
} else {

0 commit comments

Comments
 (0)