mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
pikvm/pikvm#74: Option to disable exit confirmation
This commit is contained in:
parent
49d5dcb2cc
commit
c6b7b58f2d
@ -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
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user