Skip to content

Commit 362a76a

Browse files
author
Dale Kunce
committed
Merge pull request MissingMaps#156 from MissingMaps/es6-fix
Es6 fix
2 parents b65a586 + 2f82a8f commit 362a76a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/assets/scripts/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ xmlhttp.open('GET', url, true);
3333
xmlhttp.send();
3434

3535
function updateStatistics (stats) {
36-
['users', 'edits', 'buildings', 'roads'].forEach((cat) => {
36+
['users', 'edits', 'buildings', 'roads'].forEach(function (cat) {
3737
const total = Math.floor(priorStats[cat] + stats[cat]);
38-
document.getElementById(`stats-${cat}Count`)
38+
document.getElementById('stats-' + cat + 'Count')
3939
.innerHTML = total.toLocaleString();
4040
});
4141
};

0 commit comments

Comments
 (0)