From 81543e5307c98df0d44c1cf553bcdfefbfe4ea7f Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 16 Feb 2022 22:12:59 +0000 Subject: improvements --- src/lib/constants.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/lib/constants.ts (limited to 'src/lib/constants.ts') diff --git a/src/lib/constants.ts b/src/lib/constants.ts deleted file mode 100644 index dc84994..0000000 --- a/src/lib/constants.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { API_URL } from '$lib/api' - -export let constants: any = {} - -async function updateConstants() { - constants = await fetch(API_URL + 'constants').then(r => r.json()) - console.log('updated constants') -} - -updateConstants() -setInterval(updateConstants, 60 * 60 * 1000) // update every hour \ No newline at end of file -- cgit