FIX: Should be `href` for the link

This commit is contained in:
Robin Ward 2014-03-20 15:37:00 -04:00
parent fa3e9144e2
commit ebb0661029
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
var byUrl = result.counts; var byUrl = result.counts;
for (var i=0; i<links.length; i++) { for (var i=0; i<links.length; i++) {
var link = links[i], var link = links[i],
linkCount = byUrl[link] || byUrl[link.replace(/\/#/, '#')]; linkCount = byUrl[link.href] || byUrl[link.href.replace(/\/#/, '#')];
if (linkCount) { if (linkCount) {
var t = document.createTextNode(" (" + linkCount + ")"); var t = document.createTextNode(" (" + linkCount + ")");