webterm disableLeaveAlert=true in window

This commit is contained in:
Maxim Devaev
2024-03-26 20:12:02 +02:00
parent 35173ff181
commit 8f56d6ec27

View File

@@ -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;
let path = "/" + state.webterm.path + "?disableLeaveAlert=true";
show_hook = function() {
tools.info("Terminal opened: ", path);
$("webterm-iframe").src = path;