From cf548f411fb3bfeda4f80ae1205d9158b4620bdb Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 12 Mar 2011 15:18:33 -0800 Subject: [PATCH] fix unread count for opera --- 4chan_x.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()