feat: non-blocking tank averages caching

This commit is contained in:
TresAbhi committed 2023-06-08 01:01:24 +00:00
1 parent a1a13df7ce
commit f28e8c8acb
2 files changed
+13 -11

No files matched your search

+2 -1
View File
@@ -18,8 +18,9 @@ export interface Tankopedia {
[id: number]: TankopediaEntry;
}
console.log('Caching tankopedia...');
export const tankopedia: Tankopedia = {};
console.log('Caching tankopedia...');
fetch('https://www.blitzstars.com/bs-tankopedia.json')
.then(
(response) =>