Pārlūkot izejas kodu

Fix error from a previous commit, there is no data type called 'text'..

samhed 10 gadi atpakaļ
vecāks
revīzija
b098afc234
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      include/ui.js

+ 1 - 1
include/ui.js

@@ -362,7 +362,7 @@ var UI;
             var closePopup = function() { psp.style.display = "none"; };
             var closePopup = function() { psp.style.display = "none"; };
 
 
             if (window.getComputedStyle(psp).display === 'none') {
             if (window.getComputedStyle(psp).display === 'none') {
-                if (typeof text === 'text') {
+                if (typeof text === 'string') {
                     psp.innerHTML = text;
                     psp.innerHTML = text;
                 } else {
                 } else {
                     psp.innerHTML = $D('noVNC_status').innerHTML;
                     psp.innerHTML = $D('noVNC_status').innerHTML;