mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +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,
|
||||
_echo: function(args, type) {
|
||||
// if not type is "log", then "{type}: {msg}"
|
||||
msg = (typeof(type) !== "undefined" ? type + ": " : "") + this._join(args);
|
||||
if (typeof(WScript) !== "undefined") {
|
||||
WScript.echo(" * " + (type == "log" ? msg : "[" + type + "] " + msg));
|
||||
WScript.echo(" * " + msg);
|
||||
}
|
||||
this._messages.push(msg);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user