diff options
author | Maxim Devaev <[email protected]> | 2023-12-08 18:34:21 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-12-08 18:34:21 +0200 |
commit | 5c9d98bc26caf8db7e658188adf17e8f34bc878d (patch) | |
tree | ed58212f2507d3c924362ecb7b6a3a5dab0c42c7 | |
parent | ae014a259f787ae20016bd0669d57b5ff204b788 (diff) |
remove ttyd params
-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 7168aeae..f6741a7d 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; + let path = "/" + state.webterm.path.split("?")[0]; // Remove all params like disableLeaveAlert=true show_hook = function() { tools.info("Terminal opened: ", path); $("webterm-iframe").src = path; |