ソースを参照

Merge pull request #497 from MOZGIII/MOZGIII-patch-vnc-auto-fix

Fixed incorrect UI usage and minor updateState params errors in vnc_auto.html
Solly 10 年 前
コミット
539955ff27
1 ファイル変更2 行追加3 行削除
  1. 2 3
      vnc_auto.html

+ 2 - 3
vnc_auto.html

@@ -211,8 +211,7 @@
             path = WebUtil.getQueryVar('path', 'websockify');
             path = WebUtil.getQueryVar('path', 'websockify');
 
 
             if ((!host) || (!port)) {
             if ((!host) || (!port)) {
-                updateState('failed',
-                    "Must specify host and port in URL");
+                updateState(null, 'fatal', null, 'Must specify host and port in URL');
                 return;
                 return;
             }
             }
 
 
@@ -230,7 +229,7 @@
                                'onPasswordRequired':  passwordRequired,
                                'onPasswordRequired':  passwordRequired,
                                'onFBUComplete': FBUComplete});
                                'onFBUComplete': FBUComplete});
             } catch (exc) {
             } catch (exc) {
-                UI.updateState(null, 'fatal', null, 'Unable to create RFB client -- ' + exc);
+                updateState(null, 'fatal', null, 'Unable to create RFB client -- ' + exc);
                 return; // don't continue trying to connect
                 return; // don't continue trying to connect
             }
             }