Delay the command execution

pull/75/head
Sheng 2019-07-12 22:38:48 +08:00
parent 387956dffd
commit caee6a67fb
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}
}