From 6ac81231172a04e68440b7fb459a3090788fbf00 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Fri, 4 Aug 2017 10:41:33 -0500 Subject: [PATCH] Fixes goonchat on ie8 (#2259) --- code/modules/goonchat/browserassets/js/browserOutput.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/goonchat/browserassets/js/browserOutput.js b/code/modules/goonchat/browserassets/js/browserOutput.js index 0df1c9a44e..59b152ab3b 100644 --- a/code/modules/goonchat/browserassets/js/browserOutput.js +++ b/code/modules/goonchat/browserassets/js/browserOutput.js @@ -133,7 +133,8 @@ function highlightTerms(el) { newWord = words[w].replace("<", "<").replace(new RegExp(opts.highlightTerms[i], 'gi'), addHighlightMarkup); break; } - console.log(newWord) + if (window.console) + console.log(newWord) } newText += newWord || words[w].replace("<", "<"); newText += w >= words.length ? '' : ' '; @@ -874,4 +875,4 @@ $(function() { } $('#userBar').show(); opts.priorChatHeight = $(window).height(); -}); \ No newline at end of file +});