pikvm/pikvm#74: Option to disable exit confirmation

This commit is contained in:
Devaev Maxim 2020-09-20 02:46:26 +03:00
parent 49d5dcb2cc
commit c6b7b58f2d

View File

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