Compare commits

..

No commits in common. "4c77828d5a9e17680a63d47df6d4a9f0d25582a9" and "09ec5f0d4d809d466c0584e479b7c129d5d1ede3" have entirely different histories.

View File

@ -86,9 +86,6 @@ function populateChart() {
size: 18, size: 18,
} }
}, },
time: {
unit: lookupTimeUnit(currentTimeSelection)
}
}, },
y: { y: {
ticks: { ticks: {
@ -103,17 +100,6 @@ function populateChart() {
}); });
} }
function lookupTimeUnit(query){
const lookup = {
'h': 'day',
'd': 'week',
'm': 'month',
'y': 'month',
'l': 'month'
}
return lookup[query.charAt(query.length - 1)]
}
async function callUpdateURL() { async function callUpdateURL() {
let resp = await fetch("https://data.wowtoken.app/classic/token/current.json"); let resp = await fetch("https://data.wowtoken.app/classic/token/current.json");