Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaillon committed Feb 23, 2019
1 parent f6f9323 commit ad42af2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,10 @@
// count the total of downloads
var count = 0;
for (var i = 0, n = data.length; i < n; i++) {
for (var j=0; i < data[i].assets.length; j++) {
count += data[i].assets[j].download_count;
for (var j=0, m = data[i].assets.length; j < m; j++) {
if (data[i].assets[j].hasOwnProperty('download_count')) {
count += data[i].assets[j].download_count;
}
}
}

Expand Down

0 comments on commit ad42af2

Please sign in to comment.