diff --git a/assets/js/process.js b/assets/js/process.js index a267914a..8d9e87a6 100644 --- a/assets/js/process.js +++ b/assets/js/process.js @@ -3,6 +3,7 @@ if (typeof auth !== 'undefined') { var likesCollection = db.collection('likes'); function numberWithCommas(x) { + //return x.toString().replace(/\B(? { var data = doc.data(); if (data) { + //var label = node.innerText.split(' ')[1] node.innerText = numberWithCommas(data.views) } }) @@ -19,6 +21,7 @@ if (typeof auth !== 'undefined') { likesCollection.doc(id).onSnapshot(doc => { var data = doc.data(); if (data) { + //var label = node.innerText.split(' ')[1] node.innerText = numberWithCommas(data.likes) } })