mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-04-04 22:14:07 -04:00
Don't store the current volume level in a cookie on the Montage page (MonitorStream.js)
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user