mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
prevent ctrl+w kvm session
This commit is contained in:
parent
8d12c7fda8
commit
4ed7dfb7ef
@ -24,6 +24,12 @@ var wm;
|
|||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
if (checkBrowser()) {
|
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();
|
wm = new WindowManager();
|
||||||
|
|
||||||
tools.setOnClick($("show-about-button"), () => wm.showWindow($("about-window")));
|
tools.setOnClick($("show-about-button"), () => wm.showWindow($("about-window")));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user