Fixed incorrect UI usage and minor updateState params errors in vnc_auto.html
This commit is contained in:
parent
1138bdd4b7
commit
2bcfd58667
|
@ -211,8 +211,7 @@
|
||||||
path = WebUtil.getQueryVar('path', 'websockify');
|
path = WebUtil.getQueryVar('path', 'websockify');
|
||||||
|
|
||||||
if ((!host) || (!port)) {
|
if ((!host) || (!port)) {
|
||||||
updateState('failed',
|
updateState(null, 'fatal', null, 'Must specify host and port in URL');
|
||||||
"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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue