diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/proxyWorker.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/proxyWorker.js b/src/proxyWorker.js index 5d34b900..cfe0c26e 100644 --- a/src/proxyWorker.js +++ b/src/proxyWorker.js @@ -79,11 +79,13 @@ document.createElement = function document_createElement(what) { } }; -var console = { - log: function(x) { - Module.printErr(x); - } -}; +if (typeof console === 'undefined') { + var console = { + log: function(x) { + Module.printErr(x); + } + }; +} Module.canvas = document.createElement('canvas'); |