Fix date selection

This commit is contained in:
Tom Hubrecht 2022-07-26 16:36:39 +02:00
parent a61d87b161
commit df1140649e

View file

@ -48,7 +48,7 @@
const search = new URL(document.location).searchParams; const search = new URL(document.location).searchParams;
const params = search.getAll('c'); const params = search.getAll('c');
const date = new Date(search.get('d')); const date = search.has('d') ? new Date(search.get('d')) : now;
const view = search.get('v'); const view = search.get('v');
const headers = mobile const headers = mobile