Parcourir la source

added static 15 seconds reconnect

Daniel Lackmann il y a 5 ans
Parent
commit
c3a20be7fd
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      include/ui.js

+ 6 - 0
include/ui.js

@@ -21,6 +21,12 @@ var UI;
                        "keysymdef.js", "keyboard.js", "input.js", "display.js",
                        "rfb.js", "keysym.js", "inflator.js"]);
 
+    window.setInterval( function() {
+        if (UI.rfb_state === 'disconnected') {
+            UI.connect()
+        }
+    }, 15000);
+
     UI = {
 
         rfb_state: 'loaded',