Removed url redirection from html5. Now guacamole always closes window after end

This commit is contained in:
Adolfo Gómez García 2020-10-13 20:36:31 +02:00
parent 35c4e90be8
commit 1afe118481
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -264,6 +264,6 @@ class HTML5RDPTransport(transports.Transport):
self.guacamoleServer.value, self.guacamoleServer.value,
ticket, ticket,
scrambler, scrambler,
'javascript:window.close();' + onw onw
) )
) )

View File

@ -191,6 +191,6 @@ class HTML5VNCTransport(transports.Transport):
self.guacamoleServer.value, self.guacamoleServer.value,
ticket, ticket,
scrambler, scrambler,
'javascript:window.close();' + onw onw
) )
) )