mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(socket) add " "
This commit is contained in:
parent
00b30d4f19
commit
e9727e21b7
1 changed files with 9 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* module make possible connectoin thrue socket.io on a client */
|
||||
var CloudCmd, Util, DOM, io;
|
||||
(function(CloudCmd, Util, DOM){
|
||||
(function(CloudCmd, Util, DOM) {
|
||||
'use strict';
|
||||
|
||||
var Messages = [],
|
||||
|
|
@ -41,24 +41,24 @@ var CloudCmd, Util, DOM, io;
|
|||
});
|
||||
}
|
||||
|
||||
function outToTerminal(pMsg){
|
||||
function outToTerminal(pMsg) {
|
||||
var i, n, lResult, lStdout, lStderr,
|
||||
lConsole = CloudCmd.Console;
|
||||
DOM.Images.hideLoad();
|
||||
|
||||
if( Util.isObject(lConsole) ){
|
||||
if(Messages.length){
|
||||
if (Util.isObject(lConsole)) {
|
||||
if (Messages.length) {
|
||||
/* show oll msg from buffer */
|
||||
for(i = 0, n = Messages.length; i < n; i++){
|
||||
for (i = 0, n = Messages.length; i < n; i++) {
|
||||
lStdout = Messages[i].stdout;
|
||||
lStderr = Messages[i].stderr;
|
||||
|
||||
if(lStdout)
|
||||
if (lStdout)
|
||||
lConsole.log(lStdout);
|
||||
|
||||
if(lStderr){
|
||||
if (lStderr) {
|
||||
/* if it's object - convert is to string' */
|
||||
if( Util.isObject(lStderr) )
|
||||
if (Util.isObject(lStderr))
|
||||
lStderr = Util.stringifyJSON(lStderr);
|
||||
|
||||
lConsole.error(lStderr);
|
||||
|
|
@ -70,7 +70,7 @@ var CloudCmd, Util, DOM, io;
|
|||
lStdout = pMsg.stdout;
|
||||
lStderr = pMsg.stderr;
|
||||
|
||||
if(lStdout)
|
||||
if (lStdout)
|
||||
lResult = lConsole.log(lStdout);
|
||||
|
||||
if (lStderr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue