Fix: Display volumeSlider when switching monitors on the Watch page (MonitorStream.js)

This commit is contained in:
IgorA100
2026-02-20 11:32:59 +03:00
committed by GitHub
parent 6b109280e3
commit b35942b2b9

View File

@@ -927,9 +927,11 @@ function MonitorStream(monitorData) {
this.createVolumeSlider = function() {
const volumeSlider = this.getVolumeSlider();
const iconMute = this.getIconMute();
const audioStream = this.getAudioStream();
if (volumeSlider.noUiSlider || !volumeSlider || !audioStream) return;
if (!volumeSlider || !audioStream) return;
const iconMute = this.getIconMute();
$j('#volumeControls'+this.id).show();
if (volumeSlider.noUiSlider) return;
const defaultVolume = (volumeSlider.getAttribute("data-volume") || 50);
$j('#volumeControls'+this.id).show();