webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit caee6a67fbcc542810c25e1f88ab4965f272dacf
parent 387956dffd729d904c38001afc52b201234a5bab
Author: Sheng <webmaster0115@gmail.com>
Date:   Fri, 12 Jul 2019 22:38:48 +0800

Delay the command execution

Diffstat:
Mwebssh/static/js/main.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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); } } }