]> git.proxmox.com Git - mirror_novnc.git/blobdiff - app/ui.js
Ensure warning status timeouts are honored
[mirror_novnc.git] / app / ui.js
index 48e4d136293924c7432e83b0e4d9d8d22cd423fd..0eca9a4bdfa4ec04eb67929743ad99820e53a079 100644 (file)
--- 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");