fix js error if there's no news update
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user