mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Reuse firebase db and articles
This commit is contained in:
parent
5e46617b70
commit
cb0669a742
@ -29,9 +29,10 @@ firebase.initializeApp({
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const db = firebase.firestore();
|
||||||
|
const articles = db.collection(CONFIG.firestore.collection);
|
||||||
|
|
||||||
document.addEventListener('page:loaded', () => {
|
document.addEventListener('page:loaded', () => {
|
||||||
const db = firebase.firestore();
|
|
||||||
const articles = db.collection(CONFIG.firestore.collection);
|
|
||||||
|
|
||||||
if (CONFIG.page.isPost) {
|
if (CONFIG.page.isPost) {
|
||||||
// Fix issue #118
|
// Fix issue #118
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user