Compare commits
No commits in common. "4c77828d5a9e17680a63d47df6d4a9f0d25582a9" and "09ec5f0d4d809d466c0584e479b7c129d5d1ede3" have entirely different histories.
4c77828d5a
...
09ec5f0d4d
14
src/index.js
14
src/index.js
@ -86,9 +86,6 @@ function populateChart() {
|
||||
size: 18,
|
||||
}
|
||||
},
|
||||
time: {
|
||||
unit: lookupTimeUnit(currentTimeSelection)
|
||||
}
|
||||
},
|
||||
y: {
|
||||
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() {
|
||||
let resp = await fetch("https://data.wowtoken.app/classic/token/current.json");
|
||||
|
Loading…
Reference in New Issue
Block a user