From 94e08c3657e309f614743cd406b7aad773aa6a94 Mon Sep 17 00:00:00 2001 From: Emily Doherty Date: Sun, 26 May 2024 22:47:18 -0700 Subject: [PATCH] Revert "Add early reply header to first requests" This reverts commit fa60c3ea534faf4288e748a42967dbed9f905a84. --- src/index.html | 2 +- src/index.js | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/index.html b/src/index.html index 5e720bf..72ee29c 100644 --- a/src/index.html +++ b/src/index.html @@ -7,7 +7,7 @@ - + diff --git a/src/index.js b/src/index.js index 1497831..8f9b685 100644 --- a/src/index.js +++ b/src/index.js @@ -29,7 +29,6 @@ let currentRegionSelection = ''; let currentTimeSelection = ''; let currentAggregateSelection = ''; let startYAtZero = false; -let firstLoad = true; const currentPriceHash = { us: 0, eu: 0, @@ -125,13 +124,7 @@ function lookupTimeUnit(query){ async function callUpdateURL() { - let url = "https://data.wowtoken.app/token/current.json" - if (firstLoad) { - url = `${url}?kv-response=true`; - firstLoad = false; - } - - let resp = await fetch(url); + let resp = await fetch("https://data.wowtoken.app/token/current.json"); let data = await resp.json(); updateTokens(data); }