From f5047e8fddcacca439df8928cf19b9209e2c7814 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 26 May 2014 14:40:56 -0700 Subject: [PATCH] remove workaround for fixed Chrome bug --- src/Monitoring/Unread.coffee | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 2c87bcfde..f8a03dea9 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -186,22 +186,11 @@ Unread = if $.x 'preceding-sibling::div[contains(@class,"replyContainer")]', post.data.nodes.root # not the first reply $.before post.data.nodes.root, Unread.hr - update: <% if (type === 'crx') { %>(dontrepeat) <% } %>-> + update: -> count = Unread.posts.length if Conf['Unread Count'] d.title = "#{if Conf['Quoted Title'] and Unread.postsQuotingYou.length then '(!) ' else ''}#{if count or !Conf['Hide Unread Count at (0)'] then "(#{count}) " else ''}#{if g.DEAD then "/#{g.BOARD}/ - 404" else "#{Unread.title}"}" - <% if (type === 'crx') { %> - # XXX Chrome bug where it doesn't always update the tab title. - # crbug.com/124381 - # Call it one second later, - # but don't display outdated unread count. - return if dontrepeat - setTimeout -> - d.title = '' - Unread.update true - , $.SECOND - <% } %> return unless Conf['Unread Favicon']