Skip to content

Commit 4180992

Browse files
committed
style: add indentation to js code
1 parent a16aa7d commit 4180992

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

_includes/pageviews/goatcounter.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
const url = `https://{{ site.analytics.goatcounter.id }}.goatcounter.com/counter/${encodeURIComponent(uri)}.json`;
99

1010
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-
});
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+
});
1919
}
2020
});
2121
</script>

0 commit comments

Comments
 (0)