mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Reuse firebase db and articles
This commit is contained in:
parent
5e46617b70
commit
cb0669a742
@ -29,10 +29,11 @@ firebase.initializeApp({
|
||||
};
|
||||
};
|
||||
|
||||
document.addEventListener('page:loaded', () => {
|
||||
const db = firebase.firestore();
|
||||
const articles = db.collection(CONFIG.firestore.collection);
|
||||
|
||||
document.addEventListener('page:loaded', () => {
|
||||
|
||||
if (CONFIG.page.isPost) {
|
||||
// Fix issue #118
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user