diff --git a/kasmweb/app/ui.js b/kasmweb/app/ui.js index 79614cd..b421d7d 100644 --- a/kasmweb/app/ui.js +++ b/kasmweb/app/ui.js @@ -517,8 +517,6 @@ const UI = { showStatus(text, status_type, time) { const statusElem = document.getElementById('noVNC_status'); - clearTimeout(UI.statusTimeout); - if (typeof status_type === 'undefined') { status_type = 'normal'; } @@ -540,6 +538,8 @@ const UI = { return; } + clearTimeout(UI.statusTimeout); + switch (status_type) { case 'error': statusElem.classList.remove("noVNC_status_warn");