From ce20c769b25bf35ccfdc7994960aca24ccd7cc0e Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 8 Feb 2012 18:25:32 +0100 Subject: [PATCH] Even simpler favicon refresh. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index fea38dfc1..43ea8a696 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3141,7 +3141,7 @@ if (conf['Unread Count']) d.title = "(" + count + ") " + unread.title; if (!(conf['Unread Favicon'] && count < 2 || forceUpdate)) return; Favicon.el.href = g.dead ? count ? Favicon.unreadDead : Favicon.dead : count ? Favicon.unread : Favicon["default"]; - if (engine !== 'webkit') return $.add(d.head, $.rm(Favicon.el)); + if (engine !== 'webkit') return $.add(d.head, Favicon.el); } }; diff --git a/script.coffee b/script.coffee index d569fc9f1..4c247e293 100644 --- a/script.coffee +++ b/script.coffee @@ -2457,7 +2457,7 @@ unread = #`favicon.href = href` isn't enough on Opera #Opera won't always update the favicon if the href didn't not change if engine isnt 'webkit' - $.add d.head, $.rm Favicon.el + $.add d.head, Favicon.el Favicon = init: ->