Previously we used rec.new and that appeared to cause problems
in some browsers. So now we check that new is in the record
and that it is non-zero.
Issue: #4594.
tags.push(_('UHDTV'));
else if (event.hd > 0)
tags.push(_('HDTV'));
- if ('new' in event)
+ if ('new' in event && event.new)
tags.push(_('New#EPG').split('#')[0]);
if (event.repeat)
tags.push(_('Repeat#EPG').split('#')[0]);
}
var ret = "";
- if (rec.new)
+ if ('new' in rec && rec.new)
ret += "🆕"; // Squared New
return ret + tvheadend.uniqueArray(ret_major).join("") + tvheadend.uniqueArray(ret_minor).join("");
}