mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
prevent ctrl+w kvm session
This commit is contained in:
parent
8d12c7fda8
commit
4ed7dfb7ef
@ -24,6 +24,12 @@ var wm;
|
||||
|
||||
function main() {
|
||||
if (checkBrowser()) {
|
||||
window.onbeforeunload = function(event) {
|
||||
var text = "Are you sure you want to close Pi-KVM session?";
|
||||
event.returnValue = text;
|
||||
return text;
|
||||
};
|
||||
|
||||
wm = new WindowManager();
|
||||
|
||||
tools.setOnClick($("show-about-button"), () => wm.showWindow($("about-window")));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user