mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 22:45:42 -06:00
removed comments from pr 709
This commit is contained in:
parent
f57b0dc2b2
commit
a246ba2451
1 changed files with 0 additions and 3 deletions
|
@ -3,7 +3,6 @@ if (typeof auth !== 'undefined') {
|
||||||
var likesCollection = db.collection('likes');
|
var likesCollection = db.collection('likes');
|
||||||
|
|
||||||
function numberWithCommas(x) {
|
function numberWithCommas(x) {
|
||||||
//return x.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",");
|
|
||||||
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +10,6 @@ if (typeof auth !== 'undefined') {
|
||||||
viewsCollection.doc(id).onSnapshot(doc => {
|
viewsCollection.doc(id).onSnapshot(doc => {
|
||||||
var data = doc.data();
|
var data = doc.data();
|
||||||
if (data) {
|
if (data) {
|
||||||
//var label = node.innerText.split(' ')[1]
|
|
||||||
node.innerText = numberWithCommas(data.views)
|
node.innerText = numberWithCommas(data.views)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -21,7 +19,6 @@ if (typeof auth !== 'undefined') {
|
||||||
likesCollection.doc(id).onSnapshot(doc => {
|
likesCollection.doc(id).onSnapshot(doc => {
|
||||||
var data = doc.data();
|
var data = doc.data();
|
||||||
if (data) {
|
if (data) {
|
||||||
//var label = node.innerText.split(' ')[1]
|
|
||||||
node.innerText = numberWithCommas(data.likes)
|
node.innerText = numberWithCommas(data.likes)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue