diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/session.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index 7112d51c..2708a6fe 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -75,6 +75,11 @@ export function Session() { $("kvmd-meta-server-host").innerHTML = ""; document.title = "Pi-KVM Session"; } + + // Don't use this option, it may be removed in any time + if (state.web && state.web.confirm_session_exit === false) { + window.onbeforeunload = null; // See main.js + } } }; |