aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Janicek <r@janicek.co>2014-02-18 20:50:49 -0500
committerRichard Janicek <r@janicek.co>2014-02-18 20:50:49 -0500
commit875a2ef797c44dc62b8ee1f9900c450da307ab6d (patch)
treefdadc1683ab519e69124c214d2f9a9cf9ba423ca
parent9a864d50be044455bcb7626898e58abc406215d9 (diff)
Don't redefine console if it already exists like in Chrome worker.
-rw-r--r--src/proxyWorker.js2
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);
}