mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
pikvm/pikvm#74: Option to disable exit confirmation
This commit is contained in:
@@ -75,6 +75,11 @@ export function Session() {
|
|||||||
$("kvmd-meta-server-host").innerHTML = "";
|
$("kvmd-meta-server-host").innerHTML = "";
|
||||||
document.title = "Pi-KVM Session";
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user