mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 21:51:04 +00:00
Update app.js
This commit is contained in:
parent
c808595395
commit
98b8538fb9
3
app.js
3
app.js
|
@ -58,9 +58,10 @@ var console = {
|
||||||
},
|
},
|
||||||
_echoCallback: null,
|
_echoCallback: null,
|
||||||
_echo: function(args, type) {
|
_echo: function(args, type) {
|
||||||
|
// if not type is "log", then "{type}: {msg}"
|
||||||
msg = (typeof(type) !== "undefined" ? type + ": " : "") + this._join(args);
|
msg = (typeof(type) !== "undefined" ? type + ": " : "") + this._join(args);
|
||||||
if (typeof(WScript) !== "undefined") {
|
if (typeof(WScript) !== "undefined") {
|
||||||
WScript.echo(" * " + (type == "log" ? msg : "[" + type + "] " + msg));
|
WScript.echo(" * " + msg);
|
||||||
}
|
}
|
||||||
this._messages.push(msg);
|
this._messages.push(msg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user