From: Andrew Dolgov Date: Sat, 18 Aug 2007 07:19:25 +0000 (+0100) Subject: only replace feed icon when needed X-Git-Tag: 1.2.14~32 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f780548aca80e360c930a608f7e3707494401a07;p=tt-rss.git only replace feed icon when needed --- diff --git a/functions.js b/functions.js index 5999673b..b5b8f7b6 100644 --- a/functions.js +++ b/functions.js @@ -682,7 +682,9 @@ function parse_counters(reply, scheduled_call) { } if (has_img && feed_img && !is_msie()) { - feed_img.src = getInitParam("icons_location") + "/" + id + ".ico"; + if (!feed_img.src.match(id + ".ico")) { + feed_img.src = getInitParam("icons_location") + "/" + id + ".ico"; + } } if (feedctr && feedu && feedr) {