summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-liang Kao <clkao@clkao.org>2012-10-23 15:21:05 +0800
committerChia-liang Kao <clkao@clkao.org>2012-10-23 15:21:05 +0800
commit8199bf8377a110168a23dab1b8b074b722d18ffe (patch)
tree1fcda7f14ba3445a6163273e1fe6abf690cb49a4
parent429651874f64f312d2a3dd09040aa2f8f44ed47b (diff)
downloadetherpad-lite-8199bf8377a110168a23dab1b8b074b722d18ffe.zip
Do not assume window object exists
-rw-r--r--src/static/js/contentcollector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js
index 6a75de43..dd4fd1e5 100644
--- a/src/static/js/contentcollector.js
+++ b/src/static/js/contentcollector.js
@@ -311,7 +311,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
['insertorder', 'first']
].concat(
_.map(state.lineAttributes,function(value,key){
- if (window.console) console.log([key, value])
+ if (typeof(window)!= 'undefined' && window.console) console.log([key, value])
return [key, value];
})
);