fixed analytics being recorded twice

This commit is contained in:
Jonas_Jones 2024-12-23 04:39:58 +01:00
parent 50254a8097
commit 6094873f88

View file

@ -1,7 +1,6 @@
<script>
import { spring } from 'svelte/motion';
import { onMount } from 'svelte';
import { recordRequest } from './analytics.js';
let count = -1;
@ -30,8 +29,6 @@
// Fetch initial count
fetchCount();
recordRequest();
// Update the count every 3 seconds
const interval = setInterval(fetchCount, 10000);