Split util into two file:
- util.js that contains essential functions - webutils.js that contains the GUI utility function.js this helps to include noVNC in other project, especially Cappuccino Application i
This commit is contained in:
committed by
Joel Martin
parent
a679a97d1b
commit
8d5d2c8230
+6
-6
@@ -91,18 +91,18 @@
|
||||
|
||||
$('sendCtrlAltDelButton').onclick = sendCtrlAltDel;
|
||||
|
||||
host = Util.getQueryVar('host', null);
|
||||
port = Util.getQueryVar('port', null);
|
||||
password = Util.getQueryVar('password', '');
|
||||
host = WebUtil.getQueryVar('host', null);
|
||||
port = WebUtil.getQueryVar('port', null);
|
||||
password = WebUtil.getQueryVar('password', '');
|
||||
if ((!host) || (!port)) {
|
||||
updateState('failed',
|
||||
"Must specify host and port in URL");
|
||||
return;
|
||||
}
|
||||
|
||||
rfb = new RFB({'encrypt': Util.getQueryVar('encrypt', false),
|
||||
'true_color': Util.getQueryVar('true_color', true),
|
||||
'local_cursor': Util.getQueryVar('cursor', true),
|
||||
rfb = new RFB({'encrypt': WebUtil.getQueryVar('encrypt', false),
|
||||
'true_color': WebUtil.getQueryVar('true_color', true),
|
||||
'local_cursor': WebUtil.getQueryVar('cursor', true),
|
||||
'updateState': updateState});
|
||||
rfb.connect(host, port, password);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user