Update app.js

This commit is contained in:
Namhyeon Go 2022-01-27 11:28:59 +09:00 committed by GitHub
parent c808595395
commit 98b8538fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
app.js
View File

@ -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);