mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
pwa: automatyczny reload
This commit is contained in:
+3
-1
@@ -69,7 +69,9 @@ export default defineComponent({
|
||||
}),
|
||||
|
||||
async created() {
|
||||
const stockData = await (await fetch(`https://spythere.github.io/api/stockDataNew.json?t=${Math.floor(Date.now() / 60000)}`)).json();
|
||||
const stockData = await (
|
||||
await fetch(`https://spythere.github.io/api/stockDataNew.json?t=${Math.floor(Date.now() / 60000)}`)
|
||||
).json();
|
||||
|
||||
this.store.stockData = stockData;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user