fix js error if there's no news update

This commit is contained in:
Albert Yi
2018-10-19 10:28:10 -07:00
parent 12b88f7f97
commit c301c316bf

View File

@@ -3,6 +3,10 @@ import Cookie from './cookie'
let NewsUpdate = {};
NewsUpdate.initialize = function() {
if (!$("#news-updates").length) {
return;
}
var key = $("#news-updates").data("id").toString();
if (Cookie.get("news-ticker") === key) {