From df1140649e5ec160da6634b88b4e310ad08a84e4 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 26 Jul 2022 16:36:39 +0200 Subject: [PATCH] Fix date selection --- src/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 32162df..c676930 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -48,7 +48,7 @@ const search = new URL(document.location).searchParams; 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 headers = mobile