This commit is contained in:
Frank Denis 2019-05-12 13:51:41 +02:00
parent 5b9bc08d2f
commit bb6f156412

View File

@ -100,14 +100,10 @@ if [ "$DIST" = yes ]; then
var Module = _Module; var Module = _Module;
Module.onAbort = reject; Module.onAbort = reject;
Module.print = function(what) { Module.print = function(what) {
if (typeof(console) !== 'undefined') { typeof(console) !== 'undefined' && console.log(what);
console.log(what);
}
} }
Module.printErr = function(what) { Module.printErr = function(what) {
if (typeof(console) !== 'undefined') { typeof(console) !== 'undefined' && console.warn(what);
console.warn(what);
}
} }
Module.onRuntimeInitialized = function() { Module.onRuntimeInitialized = function() {
try { try {