mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-21 09:34:08 +03:00
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)
|
||||
tunnel.onstatechange = function(state) {
|
||||
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
|
||||
|
@ -264,6 +264,6 @@ class HTML5RDPTransport(transports.Transport):
|
||||
self.guacamoleServer.value,
|
||||
ticket,
|
||||
scrambler,
|
||||
'javascript:window.close();' + onw
|
||||
onw
|
||||
)
|
||||
)
|
||||
|
@ -191,6 +191,6 @@ class HTML5VNCTransport(transports.Transport):
|
||||
self.guacamoleServer.value,
|
||||
ticket,
|
||||
scrambler,
|
||||
'javascript:window.close();' + onw
|
||||
onw
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user