Delay the command execution

This commit is contained in:
Sheng
2019-07-12 22:39:03 +08:00
parent 387956dffd
commit caee6a67fb
+4 -1
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);
}
}
}