From de253fb204d2b215c6112f1756de77258b1a28cb Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 2 Nov 2017 08:48:37 -0400 Subject: [PATCH] fix --- contrib/static/feed.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/static/feed.js b/contrib/static/feed.js index 24a0a62..8121a0e 100644 --- a/contrib/static/feed.js +++ b/contrib/static/feed.js @@ -50,16 +50,16 @@ function inject_nntp_feed_element(feed, elem) { var conns = document.createElement("div"); conns.setAttribute("class", "connections"); if (feed.Conns) { - var conns = feed.Conns; - conns.sort(function(a, b) { + var c = feed.Conns; + c.sort(function(a, b) { if(a && b) { if (a.name > b.name) return 1; else if (a.name < b.name) return -1; else return 0; } else return -1; }); - for ( var idx = 0 ; idx < conns.length; idx ++ ) { - conns.appendChild(createConnectionElement(conns[idx])); + for ( var idx = 0 ; idx < c.length; idx ++ ) { + conns.appendChild(createConnectionElement(c[idx])); } } elem.appendChild(conns);