mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Fixes goonchat on ie8
ie8 doesn't define the console unless dev tools are open
This commit is contained in:
committed by
GitHub
parent
f44ed3146f
commit
23488b6b98
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user