mirror of
https://github.com/JonasunderscoreJones/stats.jonasjones.dev.git
synced 2025-10-23 04:29: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>
|
<script>
|
||||||
import { spring } from 'svelte/motion';
|
import { spring } from 'svelte/motion';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import { recordRequest } from './analytics.js';
|
|
||||||
|
|
||||||
let count = -1;
|
let count = -1;
|
||||||
|
|
||||||
|
@ -30,8 +29,6 @@
|
||||||
// Fetch initial count
|
// Fetch initial count
|
||||||
fetchCount();
|
fetchCount();
|
||||||
|
|
||||||
recordRequest();
|
|
||||||
|
|
||||||
// Update the count every 3 seconds
|
// Update the count every 3 seconds
|
||||||
const interval = setInterval(fetchCount, 10000);
|
const interval = setInterval(fetchCount, 10000);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue