forked from shaba/openuds
Removed url redirection from html5. Now guacamole always closes window after end
This commit is contained in:
parent
35c4e90be8
commit
1afe118481
@ -1015,8 +1015,9 @@ GuacUI.Client.connect = function() {
|
|||||||
// Notify of disconnections (if not already notified of something else)
|
// Notify of disconnections (if not already notified of something else)
|
||||||
tunnel.onstatechange = function(state) {
|
tunnel.onstatechange = function(state) {
|
||||||
if (state === Guacamole.Tunnel.State.CLOSED && !GuacUI.Client.visibleStatus)
|
if (state === Guacamole.Tunnel.State.CLOSED && !GuacUI.Client.visibleStatus)
|
||||||
//GuacUI.Client.showStatus("Disconnected", "You have been disconnected. Reload the page to reconnect.");
|
// window.location = window.query.exit;
|
||||||
window.location = window.query.exit;
|
// Better do this, disabling possible xss
|
||||||
|
window.close()
|
||||||
};
|
};
|
||||||
|
|
||||||
// Connect
|
// Connect
|
||||||
|
@ -264,6 +264,6 @@ class HTML5RDPTransport(transports.Transport):
|
|||||||
self.guacamoleServer.value,
|
self.guacamoleServer.value,
|
||||||
ticket,
|
ticket,
|
||||||
scrambler,
|
scrambler,
|
||||||
'javascript:window.close();' + onw
|
onw
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -191,6 +191,6 @@ class HTML5VNCTransport(transports.Transport):
|
|||||||
self.guacamoleServer.value,
|
self.guacamoleServer.value,
|
||||||
ticket,
|
ticket,
|
||||||
scrambler,
|
scrambler,
|
||||||
'javascript:window.close();' + onw
|
onw
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user