diff --git a/_includes/pageviews/goatcounter.html b/_includes/pageviews/goatcounter.html index 20719b4..265b224 100644 --- a/_includes/pageviews/goatcounter.html +++ b/_includes/pageviews/goatcounter.html @@ -8,14 +8,14 @@ const url = `https://{{ site.analytics.goatcounter.id }}.goatcounter.com/counter/${encodeURIComponent(uri)}.json`; fetch(url) - .then((response) => response.json()) - .then((data) => { - const count = data.count.replace(/\s/g, ''); - pv.innerText = new Intl.NumberFormat().format(count); - }) - .catch((error) => { - pv.innerText = '1'; - }); + .then((response) => response.json()) + .then((data) => { + const count = data.count.replace(/\s/g, ''); + pv.innerText = new Intl.NumberFormat().format(count); + }) + .catch((error) => { + pv.innerText = '1'; + }); } });