diff --git a/app/ui.js b/app/ui.js index 48e4d136..0eca9a4b 100644 --- a/app/ui.js +++ b/app/ui.js @@ -447,8 +447,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'; } @@ -470,6 +468,8 @@ const UI = { return; } + clearTimeout(UI.statusTimeout); + switch (status_type) { case 'error': statusElem.classList.remove("noVNC_status_warn");