force disableLeaveAlert=true

This commit is contained in:
Maxim Devaev 2023-12-08 18:56:48 +02:00
parent 44e0d70d76
commit 648cfdb7da

View File

@ -251,7 +251,7 @@ export function Session() {
let close_hook = null; let close_hook = null;
let has_webterm = (state.webterm && (state.webterm.enabled || state.webterm.started)); let has_webterm = (state.webterm && (state.webterm.enabled || state.webterm.started));
if (has_webterm) { 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() { show_hook = function() {
tools.info("Terminal opened: ", path); tools.info("Terminal opened: ", path);
$("webterm-iframe").src = path; $("webterm-iframe").src = path;