diff options
author | Maxim Devaev <[email protected]> | 2023-12-08 18:56:48 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-12-08 18:58:21 +0200 |
commit | 648cfdb7da776d0dff15d50f6f144e29894a4e73 (patch) | |
tree | 6413b8953d470cfaed5aca5b72f0e54c96da6b27 | |
parent | 44e0d70d768216d5df7f460e7f830cf32781047d (diff) |
force disableLeaveAlert=true
-rw-r--r-- | web/share/js/kvm/session.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index f6741a7d..c8468b90 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -251,7 +251,7 @@ export function Session() { let close_hook = null; let has_webterm = (state.webterm && (state.webterm.enabled || state.webterm.started)); if (has_webterm) { - let path = "/" + state.webterm.path.split("?")[0]; // Remove all params like disableLeaveAlert=true + let path = "/" + state.webterm.path.split("?")[0] + "?disableLeaveAlert=true"; show_hook = function() { tools.info("Terminal opened: ", path); $("webterm-iframe").src = path; |