mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-14 09:34:32 -04:00
Exit the getTracksFromStream function if it could not determine the Monitor.ID from the passed stream (skin.js)
This commit is contained in:
@@ -2764,6 +2764,10 @@ async function getTracksFromStream(videoFeedStream) {
|
||||
return;
|
||||
}
|
||||
const mid = (typeof eventData !== 'undefined') ? eventData.MonitorId : (videoFeedStream) ? videoFeedStream.id : null;
|
||||
if (!mid) {
|
||||
console.log(`getTracksFromStream: Unable to get Monitor.ID for`, videoFeedStream);
|
||||
return;
|
||||
}
|
||||
|
||||
let el = null;
|
||||
if (currentView == 'watch' || currentView == 'montage') {
|
||||
|
||||
Reference in New Issue
Block a user