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

pull/4638/head
IgorA100 2026-02-20 11:32:59 +03:00 committed by GitHub
parent 6b109280e3
commit b35942b2b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

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();