Explorar o código

added static 15 seconds reconnect

Daniel Lackmann %!s(int64=5) %!d(string=hai) anos
pai
achega
c3a20be7fd
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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',