mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-18 11:35:15 -04:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user