From: Andrew Dolgov Date: Tue, 10 Jul 2012 20:29:36 +0000 (+0400) Subject: precache_headlines: fix typo which caused 2 requests of same feed X-Git-Tag: 1.6.0~187 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0670a2a71ddb769e5b5d2e56e6cc2c41adebe715;p=tt-rss.git precache_headlines: fix typo which caused 2 requests of same feed --- diff --git a/js/viewfeed.js b/js/viewfeed.js index e8d449a2..a4e9f82c 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -2083,7 +2083,7 @@ function precache_headlines() { if (nuf && !cache_get("feed:" + nuf + ":" + activeFeedIsCat())) viewfeed(nuf, '', activeFeedIsCat(), 0, true); - if (nf != nuf && nf && !cache_get("feed:" + nf[0] + ":" + nf[1])) + if (nf && nf[0] != nuf && !cache_get("feed:" + nf[0] + ":" + nf[1])) viewfeed(nf[0], '', nf[1], 0, true); window.setTimeout(function() {