This commit is contained in:
Frank Denis
2019-05-12 13:51:41 +02:00
parent 5dcac49724
commit dee20234c8
+2 -6
View File
@@ -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 {