diff --git a/src/index.html b/src/index.html index 72ee29c..5e720bf 100644 --- a/src/index.html +++ b/src/index.html @@ -7,7 +7,7 @@ - +
diff --git a/src/index.js b/src/index.js index 8f9b685..1497831 100644 --- a/src/index.js +++ b/src/index.js @@ -29,6 +29,7 @@ let currentRegionSelection = ''; let currentTimeSelection = ''; let currentAggregateSelection = ''; let startYAtZero = false; +let firstLoad = true; const currentPriceHash = { us: 0, eu: 0, @@ -124,7 +125,13 @@ function lookupTimeUnit(query){ async function callUpdateURL() { - let resp = await fetch("https://data.wowtoken.app/token/current.json"); + let url = "https://data.wowtoken.app/token/current.json" + if (firstLoad) { + url = `${url}?kv-response=true`; + firstLoad = false; + } + + let resp = await fetch(url); let data = await resp.json(); updateTokens(data); }