diff --git a/dist-build/emscripten.sh b/dist-build/emscripten.sh index 4dfd899b..e7d7a9bc 100755 --- a/dist-build/emscripten.sh +++ b/dist-build/emscripten.sh @@ -100,14 +100,10 @@ if [ "$DIST" = yes ]; then var Module = _Module; Module.onAbort = reject; Module.print = function(what) { - if (typeof(console) !== 'undefined') { - console.log(what); - } + typeof(console) !== 'undefined' && console.log(what); } Module.printErr = function(what) { - if (typeof(console) !== 'undefined') { - console.warn(what); - } + typeof(console) !== 'undefined' && console.warn(what); } Module.onRuntimeInitialized = function() { try {