Commit 05523726 authored by fred's avatar fred

js: fix check for active chat

parent 4d705a72
......@@ -220,7 +220,7 @@ $(function() {
else {
onairContainer = $('<span>Unknown (Probably Non-Stop)</span>');
}
if (onair.data.emission.chat) {
if (onair.data.emission && onair.data.emission.chat) {
$('#CurrentlyChatting a').attr('href', onair.data.emission.chat);
$('#CurrentlyChatting').show();
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment