mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-28 04:59:50 +01:00
fix: no store only manifest
This commit is contained in:
1 parent
0952d7e770
commit
f3140ce0af
1 file changed
+1
-3
@@ -52,9 +52,7 @@ export const averageDefinitions = fetch(asset('averages/manifest.json'), {
|
|||||||
cache: 'no-store',
|
cache: 'no-store',
|
||||||
})
|
})
|
||||||
.then((response) => response.json() as Promise<AverageDefinitionsManifest>)
|
.then((response) => response.json() as Promise<AverageDefinitionsManifest>)
|
||||||
.then((manifest) =>
|
.then((manifest) => fetch(asset(`averages/${manifest.latest}.pb`)))
|
||||||
fetch(asset(`averages/${manifest.latest}.pb`), { cache: 'no-store' }),
|
|
||||||
)
|
|
||||||
.then((response) => response.arrayBuffer())
|
.then((response) => response.arrayBuffer())
|
||||||
.then((buffer) =>
|
.then((buffer) =>
|
||||||
decode<AverageDefinitions>(
|
decode<AverageDefinitions>(
|
||||||
|
|||||||
Reference in new issue
Block a user