From 9771d67af953a75e012fa35a63871493ea9b094e Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 18 Mar 2023 00:36:55 +0100 Subject: [PATCH] Re-add GoatCounter script --- {lib => src}/count.js | 1 - src/pages/index.astro | 14 +------------- 2 files changed, 1 insertion(+), 14 deletions(-) rename {lib => src}/count.js (99%) diff --git a/lib/count.js b/src/count.js similarity index 99% rename from lib/count.js rename to src/count.js index cdf1a80..4a75bea 100644 --- a/lib/count.js +++ b/src/count.js @@ -29,7 +29,6 @@ // This is the analytics code for Shareâ‚‚Fedi. It just sends a beacon // to GoatCounter with hardcoded path. This is way more lightweight, performant // and privacy-friendly than the default GC script. - if ( window.location.host === "s2f.kytta.dev" || window.location.host === "share2fedi.kytta.dev" diff --git a/src/pages/index.astro b/src/pages/index.astro index db02368..7432df0 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -47,19 +47,7 @@ const prefilledInstance = searchParameters.get("instance"); href="https://s2f.kytta.dev/" /> - - +