From 418099227222baac6c7dab74d40de751325ffd82 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 3 Dec 2024 22:22:20 +0800 Subject: [PATCH] style: add indentation to js code --- _includes/pageviews/goatcounter.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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'; + }); } });