mirror of
https://github.com/JonasunderscoreJones/stats.jonasjones.dev.git
synced 2025-10-22 20:19:19 +02:00
fixed analytics being recorded twice
This commit is contained in:
parent
50254a8097
commit
6094873f88
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue