hexo-theme-next
Advanced tools
Comparing version 8.13.1 to 8.13.2
{ | ||
"name": "hexo-theme-next", | ||
"version": "8.13.1", | ||
"version": "8.13.2", | ||
"description": "Elegant and powerful theme for Hexo.", | ||
@@ -38,9 +38,9 @@ "main": "package.json", | ||
"chai": "4.3.6", | ||
"eslint": "8.24.0", | ||
"eslint": "8.26.0", | ||
"hexo": "6.3.0", | ||
"hexo-renderer-marked": "5.0.0", | ||
"hexo-renderer-marked": "6.0.0", | ||
"js-yaml": "4.1.0", | ||
"mocha": "10.0.0", | ||
"mocha": "10.1.0", | ||
"stylint": "2.0.0" | ||
} | ||
} |
@@ -26,8 +26,2 @@ /* global CONFIG, firebase */ | ||
const appendCountTo = el => { | ||
return count => { | ||
el.innerText = count; | ||
}; | ||
}; | ||
const db = firebase.firestore(); | ||
@@ -50,3 +44,5 @@ const articles = db.collection(CONFIG.firestore.collection); | ||
} | ||
getCount(doc, increaseCount).then(appendCountTo(document.querySelector('.firestore-visitors-count'))); | ||
getCount(doc, increaseCount).then(count => { | ||
document.querySelector('.firestore-visitors-count').innerText = count; | ||
}); | ||
} else if (CONFIG.page.isHome) { | ||
@@ -61,3 +57,3 @@ const promises = [...document.querySelectorAll('.post-title')].map(element => { | ||
counts.forEach((val, idx) => { | ||
appendCountTo(metas[idx])(val); | ||
metas[idx].innerText = val; | ||
}); | ||
@@ -64,0 +60,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
447703
2976