wowtoken.app

git clone https://git.emily.sh/wowtoken-app/wowtoken.app.git
Log | Files | Refs | README | LICENSE

commit f40f4827d022cd130aba56cdee897c5f43838ccc
parent 0d59dc046d34792609a08300418b65173ee50a3e
Author: Emily Doherty <git@emily.sh>
Date:   Sun, 27 Nov 2022 16:33:14 -0800

Add a 2 year selection

This was actually commited accidentally with the last push, but this allows you to chose that from the URL query option

Diffstat:
Msrc/index.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/index.js b/src/index.js @@ -151,7 +151,7 @@ function detectURLQuery() { // In the future, we will allow all the times to be selected, // once I come up with a good reduction algorithm. // For larger time selections, it's currently hardcoded into the backend - const allowedTimes = ['72h', '167h', '336h', '720h', '30d', '90d', '1y', '6m', 'all'] + const allowedTimes = ['72h', '167h', '336h', '720h', '30d', '90d', '1y', '2y', '6m', 'all'] if (urlSearchParams.has('time')) { if (allowedTimes.includes(urlSearchParams.get('time').toLowerCase())) { current_time_selection = urlSearchParams.get('time').toLowerCase()