From 2bcfd58667d585fd8af36c8e525a7062a140bf6e Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Fri, 12 Jun 2015 20:41:41 +0300 Subject: [PATCH] Fixed incorrect UI usage and minor updateState params errors in vnc_auto.html --- vnc_auto.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vnc_auto.html b/vnc_auto.html index ec18ab84..4361a5d5 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 }