aboutsummaryrefslogtreecommitdiff
path: root/src/lib/constants.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-02-16 22:12:59 +0000
committermat <github@matdoes.dev>2022-02-16 22:12:59 +0000
commit81543e5307c98df0d44c1cf553bcdfefbfe4ea7f (patch)
tree8e7f50affea5920fe3607b1168f1703acf7cb194 /src/lib/constants.ts
parent36bbe64db012aaed7ff0fadf083f191b122fa4ad (diff)
downloadskyblock-stats-81543e5307c98df0d44c1cf553bcdfefbfe4ea7f.tar.gz
skyblock-stats-81543e5307c98df0d44c1cf553bcdfefbfe4ea7f.tar.bz2
skyblock-stats-81543e5307c98df0d44c1cf553bcdfefbfe4ea7f.zip
improvements
Diffstat (limited to 'src/lib/constants.ts')
-rw-r--r--src/lib/constants.ts11
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