Browse Source

added static 15 seconds reconnect

Daniel Lackmann 5 năm trước cách đây
mục cha
commit
c3a20be7fd
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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',