diff --git a/4chan_x.user.js b/4chan_x.user.js index 56a1f3fb6..c34ae9210 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -5211,6 +5211,9 @@ }, onUpdate: function(e) { var fileCount, fileLimit, postCount, postLimit, _ref; + if (e.detail[404]) { + return; + } _ref = e.detail, postCount = _ref.postCount, fileCount = _ref.fileCount, postLimit = _ref.postLimit, fileLimit = _ref.fileLimit; return ThreadStats.update(postCount, fileCount, postLimit, fileLimit); }, diff --git a/src/features.coffee b/src/features.coffee index 507d229c9..183118492 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -3503,6 +3503,7 @@ ThreadStats = $.on d, 'ThreadUpdate', ThreadStats.onUpdate $.add d.body, ThreadStats.dialog onUpdate: (e) -> + return if e.detail[404] {postCount, fileCount, postLimit, fileLimit} = e.detail ThreadStats.update postCount, fileCount, postLimit, fileLimit update: (postCount, fileCount, postLimit, fileLimit) ->