diff options
author | Richard Janicek <r@janicek.co> | 2014-02-18 20:50:49 -0500 |
---|---|---|
committer | Richard Janicek <r@janicek.co> | 2014-02-18 20:50:49 -0500 |
commit | 875a2ef797c44dc62b8ee1f9900c450da307ab6d (patch) | |
tree | fdadc1683ab519e69124c214d2f9a9cf9ba423ca | |
parent | 9a864d50be044455bcb7626898e58abc406215d9 (diff) |
Don't redefine console if it already exists like in Chrome worker.
-rw-r--r-- | src/proxyWorker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proxyWorker.js b/src/proxyWorker.js index 5d34b900..b95f05e9 100644 --- a/src/proxyWorker.js +++ b/src/proxyWorker.js @@ -79,7 +79,7 @@ document.createElement = function document_createElement(what) { } }; -var console = { +var console = console || { log: function(x) { Module.printErr(x); } |