From 8896bcfdc016ca542e43ae523205fa7953367c73 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Wed, 29 Apr 2026 18:05:01 +0300 Subject: [PATCH] Abort checkVerAudioMotion() if we couldn't get the CURRENT_AUDIO_MOTION_ANALYZER_VERSION value (monitor.js) https://github.com/ZoneMinder/zoneminder/pull/4753/changes#r3158319956 --- web/skins/classic/views/js/monitor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/monitor.js b/web/skins/classic/views/js/monitor.js index 9c6ec93dd..43612d566 100644 --- a/web/skins/classic/views/js/monitor.js +++ b/web/skins/classic/views/js/monitor.js @@ -532,7 +532,11 @@ function initPage() { } // end function initPage() async function checkVerAudioMotion() { - await waitUntil(() => window.CURRENT_AUDIO_MOTION_ANALYZER_VERSION, 20000); + const result = await waitUntil(() => window.CURRENT_AUDIO_MOTION_ANALYZER_VERSION, 20000); + if (result === false) { + console.warn("Unable to obtain the current version number of audio motion analyzer."); + return; + } const whatDisplayInfo = document.getElementById("WhatDisplayInfo"); whatDisplayInfo.classList.remove("text-success"); whatDisplayInfo.classList.remove("text-info");