diff --git a/4chan_x.user.js b/4chan_x.user.js index b332b8551..caff32559 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -5010,7 +5010,9 @@ return Unread.update(); }, onUpdate: function(e) { - if (!e.detail[404]) { + if (e.detail[404]) { + return Unread.update(); + } else { return Unread.addPosts(e.detail.newPosts); } }, diff --git a/src/features.coffee b/src/features.coffee index 1d28ba99c..d5a75e8ce 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -3330,7 +3330,9 @@ Unread = Unread.update() onUpdate: (e) -> - unless e.detail[404] + if e.detail[404] + Unread.update() + else Unread.addPosts e.detail.newPosts post: (e) ->