fix notifications

This commit is contained in:
Vladimir Mandic
2024-05-02 13:08:16 -04:00
parent 6cd884acb6
commit eecbcd1c30
6 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ async function logMonitor() {
document.getElementById('logWarnings').innerText = logWarnings;
document.getElementById('logErrors').innerText = logErrors;
const modenUIBtn = document.getElementById('btn_console');
if (modenUIBtn) modenUIBtn.setAttribute('error-count', logErrors);
if (modenUIBtn) modenUIBtn.setAttribute('error-count', logErrors > 0 ? logErrors : '');
};
if (logMonitorStatus) setTimeout(logMonitor, opts.logmonitor_refresh_period);