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
This commit is contained in:
IgorA100
2026-04-29 18:05:01 +03:00
committed by GitHub
parent f9df56c43f
commit 8896bcfdc0

View File

@@ -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");