mirror of https://github.com/huashengdun/webssh
Delay the command execution
parent
387956dffd
commit
caee6a67fb
|
@ -341,8 +341,11 @@ jQuery(function($){
|
||||||
if (!term.resized) {
|
if (!term.resized) {
|
||||||
resize_terminal(term);
|
resize_terminal(term);
|
||||||
term.resized = true;
|
term.resized = true;
|
||||||
|
|
||||||
if (url_opts_data.command) {
|
if (url_opts_data.command) {
|
||||||
|
setTimeout(function () {
|
||||||
sock.send(JSON.stringify({'data': url_opts_data.command+'\r'}));
|
sock.send(JSON.stringify({'data': url_opts_data.command+'\r'}));
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue