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