mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-07 08:07:51 +00:00
fix: correct GoatCounter pageviews extraction (#2420)
This commit is contained in:
parent
18c48b4c49
commit
c706799f9b
@ -10,7 +10,7 @@
|
||||
fetch(url)
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
const count = data.count.replace(/\s/g, '');
|
||||
const count = data.count.replace(/\D/g, '');
|
||||
pv.innerText = new Intl.NumberFormat().format(count);
|
||||
})
|
||||
.catch((error) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user