Fix date selection
This commit is contained in:
parent
a61d87b161
commit
df1140649e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue