1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Fix novnc detach in Firefox

This commit is contained in:
Daniel Molina 2013-07-15 11:10:54 +02:00
parent 5b841bc055
commit 92e98fb7fd

View File

@ -133,21 +133,20 @@ var INCLUDE_URI = "vendor/noVNC/";
path = WebUtil.getQueryVar('path', 'websockify');
if ((!host) || (!port)) {
updateState('failed',
"Must specify host and port in URL");
return;
updateState('failed', "Must specify host and port in URL");
} else {
rfb = new RFB({'target': $D('noVNC_canvas'),
'encrypt': "<%=params['encrypt']%>" == "yes",
'repeaterID': WebUtil.getQueryVar('repeaterID', ''),
'true_color': WebUtil.getQueryVar('true_color', true),
'local_cursor': WebUtil.getQueryVar('cursor', true),
'shared': WebUtil.getQueryVar('shared', true),
'view_only': WebUtil.getQueryVar('view_only', false),
'updateState': updateState,
'onPasswordRequired': passwordRequired});
rfb.connect("<%= params['host']%>", "<%= params['port']%>", "<%= params['password']%>", path+"?token=<%= params['token']%>");
}
rfb = new RFB({'target': $D('noVNC_canvas'),
'encrypt': "<%=params['encrypt']%>" == "yes",
'repeaterID': WebUtil.getQueryVar('repeaterID', ''),
'true_color': WebUtil.getQueryVar('true_color', true),
'local_cursor': WebUtil.getQueryVar('cursor', true),
'shared': WebUtil.getQueryVar('shared', true),
'view_only': WebUtil.getQueryVar('view_only', false),
'updateState': updateState,
'onPasswordRequired': passwordRequired});
rfb.connect("<%= params['host']%>", "<%= params['port']%>", "<%= params['password']%>", path+"?token=<%= params['token']%>");
</script>
</body>