From 7b8d63ea122bdcf5e1f04b930346d2bcb273d85a Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Mon, 12 Jan 2026 12:02:11 +0300 Subject: [PATCH] Don't store the current volume level in a cookie on the Montage page (MonitorStream.js) --- web/js/MonitorStream.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/js/MonitorStream.js b/web/js/MonitorStream.js index 33688c5c6..cf62b3d55 100644 --- a/web/js/MonitorStream.js +++ b/web/js/MonitorStream.js @@ -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)); };