Skip to content

Commit cda6021

Browse files
authored
Merge pull request #296 from halemmerich/emulator
Only log to console if no handler is available
2 parents 68ff3fa + 6c97d79 commit cda6021

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)