Don't store the current volume level in a cookie on the Montage page (MonitorStream.js)

This commit is contained in:
IgorA100
2026-01-12 12:02:11 +03:00
committed by GitHub
parent 454d546a6e
commit 7b8d63ea12

View File

@@ -822,9 +822,11 @@ function MonitorStream(monitorData) {
}
volumeSlider.noUiSlider.set(audioStream.volume * 100);
}
// FIXME what if we are on montage?
setCookie('zmWatchMuted', audioStream.muted);
setCookie('zmWatchVolume', parseInt(audioStream.volume * 100));
if (currentView != 'montage') {
setCookie('zmWatchMuted', audioStream.muted);
setCookie('zmWatchVolume', parseInt(audioStream.volume * 100));
}
volumeSlider.setAttribute('data-muted', audioStream.muted);
volumeSlider.setAttribute('data-volume', parseInt(audioStream.volume * 100));
};