Skip to content

Commit 6c97d79

Browse files
committed
Only log to console if no handler is available
1 parent 68ff3fa commit 6c97d79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

emu/common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function jsHandleIO() {
5252
if (ll.length>1) {
5353
if ("undefined" != typeof onConsoleOutput)
5454
onConsoleOutput(ll[0]);
55-
console.log("EMSCRIPTEN:",ll[0]);
55+
else
56+
console.log("EMSCRIPTEN:",ll[0]);
5657
l = ll[1];
5758
}
5859
}

0 commit comments

Comments
 (0)