mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
remove ttyd params
This commit is contained in:
parent
ae014a259f
commit
5c9d98bc26
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user