summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMOZGIII <mike-n@narod.ru>2015-06-12 20:41:41 +0300
committerMOZGIII <mike-n@narod.ru>2015-06-12 20:41:41 +0300
commit2bcfd58667d585fd8af36c8e525a7062a140bf6e (patch)
treebc082eb58d31b5d95a94d7bf39e1e36654a1a95e
parent1138bdd4b7e400833eb9cf444ae8daf8702eae7b (diff)
downloadnovnc-2bcfd58667d585fd8af36c8e525a7062a140bf6e.tar.gz
Fixed incorrect UI usage and minor updateState params errors in vnc_auto.html
-rw-r--r--vnc_auto.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/vnc_auto.html b/vnc_auto.html
index ec18ab8..4361a5d 100644
--- a/vnc_auto.html
+++ b/vnc_auto.html
@@ -211,8 +211,7 @@
path = WebUtil.getQueryVar('path', 'websockify');
if ((!host) || (!port)) {
- updateState('failed',
- "Must specify host and port in URL");
+ updateState(null, 'fatal', null, 'Must specify host and port in URL');
return;
}
@@ -230,7 +229,7 @@
'onPasswordRequired': passwordRequired,
'onFBUComplete': FBUComplete});
} 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
}