diff --git a/4chan_x.js b/4chan_x.js index 1ba0041f8..a4bb8e021 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1904,7 +1904,7 @@ if (getConfig('Unread Count')) { g.replies = []; d.title = '(0) ' + d.title; - d.addEventListener('scroll', scroll, true); + window.addEventListener('scroll', scroll, true); g.callbacks.push(function(root) { g.replies = g.replies.concat($$('td.reply, td.replyhl', root)); return updateTitle(); diff --git a/script.coffee b/script.coffee index e1bce5a2e..1a06ffcee 100644 --- a/script.coffee +++ b/script.coffee @@ -1439,7 +1439,7 @@ if g.REPLY if getConfig 'Unread Count' g.replies = [] d.title = '(0) ' + d.title - d.addEventListener 'scroll', scroll, true + window.addEventListener 'scroll', scroll, true g.callbacks.push (root) -> g.replies = g.replies.concat $$ 'td.reply, td.replyhl', root updateTitle()