diff options
author | Devaev Maxim <[email protected]> | 2020-09-20 02:46:26 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-20 02:46:26 +0300 |
commit | c6b7b58f2d39371f9ec37697abf8248111693b17 (patch) | |
tree | 153825ed97783fd134be42959bf94091fe37bb67 /web/share | |
parent | 49d5dcb2ccb70ee5949fd6b42e0e05ef2cf7f7da (diff) |
pikvm/pikvm#74: Option to disable exit confirmation
Diffstat (limited to 'web/share')
-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 + } } }; |