mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-20 12:46:39 +00:00
Delay the command execution
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user