mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactor(console) handler
This commit is contained in:
parent
9b4d3cd6e7
commit
114f6d53e4
1 changed files with 4 additions and 5 deletions
|
|
@ -54,12 +54,11 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
|
||||
// Handle a command.
|
||||
var handler = function(command) {
|
||||
var lSocket = CloudCmd.Socket;
|
||||
if (command) {
|
||||
var socket = CloudCmd.Socket;
|
||||
|
||||
if (command && socket) {
|
||||
Images.showLoad({ top:true });
|
||||
|
||||
if(lSocket)
|
||||
lSocket.send(command);
|
||||
socket.send(command);
|
||||
}
|
||||
|
||||
jqconsole.Prompt(true, handler);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue