pwa: automatyczny reload

This commit is contained in:
2023-01-03 01:29:15 +01:00
parent 6a10b1e191
commit 242be73c78
4 changed files with 19 additions and 6 deletions
+3 -1
View File
@@ -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;
},