diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js index 520241b..f3377c5 100644 --- a/webssh/static/js/main.js +++ b/webssh/static/js/main.js @@ -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); } } }