From 75f8ae0bd75336119b21329f42fe60a399e59451 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 7 Dec 2011 23:12:53 +0100 Subject: [PATCH] Don't update the favicon if you have Unread Count when opening the options. --- 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 30263d68e..5123d6158 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1439,7 +1439,7 @@ favicon: function() { $.cb.value.call(this); Favicon["switch"](); - if (g.REPLY) Favicon.update(); + if (g.REPLY && conf['Unread Count']) Favicon.update(); return this.nextElementSibling.innerHTML = ""; } }; diff --git a/script.coffee b/script.coffee index 2ec53a46a..08a0c1ddf 100644 --- a/script.coffee +++ b/script.coffee @@ -1076,7 +1076,7 @@ options = favicon: -> $.cb.value.call @ Favicon.switch() - Favicon.update() if g.REPLY + Favicon.update() if g.REPLY and conf['Unread Count'] @nextElementSibling.innerHTML = "" cooldown =