Don't throw an exception if we get an undefined stream

(imported from commit b6bbaf1fa14bec5fc43016f81e15caa32a9fb948)
This commit is contained in:
Leo Franchi 2013-05-22 15:18:31 -04:00
parent 9bfec549af
commit 3b7ddd72cf

View File

@ -97,6 +97,10 @@ function colorize_tab_bar() {
var stream_tab = $('#tab_list .stream');
if (stream_tab.length > 0) {
var stream_name = stream_tab.data('name');
if (stream_name === undefined) {
return;
}
var stream_color = subs.get_color(stream_name);
if (!stream_tab.hasClass('active')) {