From 11e601fbcd8d588599017db36b2c10affd00a808 Mon Sep 17 00:00:00 2001 From: Wikinaut Date: Wed, 1 Aug 2012 14:34:03 +0200 Subject: [PATCH] fix #890 test if console is available before writing to console.log --- src/static/js/contentcollector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index 2e848f974..777b3421c 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -310,7 +310,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class ['insertorder', 'first'] ].concat( _.map(state.lineAttributes,function(value,key){ - console.log([key, value]) + if (window.console) console.log([key, value]) return [key, value]; }) );