diff options
Diffstat (limited to 'src/lib/constants.ts')
-rw-r--r-- | src/lib/constants.ts | 11 |
1 files changed, 0 insertions, 11 deletions
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 |