We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a16aa7d commit 4180992Copy full SHA for 4180992
_includes/pageviews/goatcounter.html
@@ -8,14 +8,14 @@
8
const url = `https://{{ site.analytics.goatcounter.id }}.goatcounter.com/counter/${encodeURIComponent(uri)}.json`;
9
10
fetch(url)
11
- .then((response) => response.json())
12
- .then((data) => {
13
- const count = data.count.replace(/\s/g, '');
14
- pv.innerText = new Intl.NumberFormat().format(count);
15
- })
16
- .catch((error) => {
17
- pv.innerText = '1';
18
- });
+ .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';
+ });
19
}
20
});
21
</script>
0 commit comments