[
https://issues.apache.org/jira/browse/GUACAMOLE-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286748#comment-17286748
]
phreakocious commented on GUACAMOLE-1292:
-----------------------------------------
I'll be submitting it as a PR, which I hope will be accepted, but it mainly
came down to adding and removing the event listener based on whether there is
an active connection in clientController.js
> Preventing unintentional window/tab closing with beforeUnload
> -------------------------------------------------------------
>
> Key: GUACAMOLE-1292
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-1292
> Project: Guacamole
> Issue Type: Improvement
> Reporter: phreakocious
> Priority: Major
>
> Many people who use my guac systems have unintentionally closed their
> window/tab with ctrl-w in a command line session. I have added the
> beforeUnload event listener code to prevent this, but it currently impacts
> all windows. I'd like it to be in effect only for active connection tabs.
> Could someone help me find a way to reliably determine if the user is
> currently in a remote connection vs in a menu? Thanks!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)