Skip to content

Commit

Permalink
Fix JS object injection.
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Aug 19, 2020
1 parent 142a6dc commit 762276a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/_utils/pageviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ function countPV(path, rows) {

if (typeof rows !== "undefined" ) {
for (var i = 0; i < rows.length; ++i) {
var gaPath = rows[i][0];
var gaPath = rows[parseInt(i, 10)][0];
if (gaPath === path) { /* path format see: site.permalink */
count += parseInt(rows[i][1], 10);
count += parseInt(rows[parseInt(i, 10)][1], 10);
break;
}
}
Expand Down

0 comments on commit 762276a

Please sign in to comment.