diff --git a/app/ui.js b/app/ui.js
index 7d4f0811d7a61ab5f2e28cb17dc6d6993611581c..75eeab9293c09396b67b67e26f750fb60ae2f8b0 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -560,9 +560,9 @@ var UI;
                 status_type = 'normal';
             }
 
-            statusElem.classList.remove("noVNC_status_normal",
-                                        "noVNC_status_warn",
-                                        "noVNC_status_error");
+            statusElem.classList.remove("noVNC_status_normal");
+            statusElem.classList.remove("noVNC_status_warn");
+            statusElem.classList.remove("noVNC_status_error");
 
             switch (status_type) {
                 case 'warning':