From c1b4225b34e1fa845f757359d8a2c6c1f3aa3593 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Fri, 13 May 2022 11:53:55 +0200 Subject: [PATCH] refactored HEAD fetch --- web/App.svelte | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/web/App.svelte b/web/App.svelte index e1f9b1c..61c5b7b 100644 --- a/web/App.svelte +++ b/web/App.svelte @@ -1,18 +1,18 @@
Download
- {#if component === null} + {#await getFileHeadAndComponent()} Loading data... - {:else} - {#await component} - Loading data... - {:then v } - - {/await} - {/if} + {:then v } + + {/await}