From 4a98e886393c152d107a96105e3039c3059317ca Mon Sep 17 00:00:00 2001 From: Alessio Davoli Date: Wed, 19 Jul 2023 17:03:44 +0200 Subject: [PATCH] Add prompt to update --- frontend/src/lib/ReloadPrompt.svelte | 75 ++++++++++++++++++++++++++++ frontend/src/routes/+layout.svelte | 4 ++ 2 files changed, 79 insertions(+) create mode 100644 frontend/src/lib/ReloadPrompt.svelte diff --git a/frontend/src/lib/ReloadPrompt.svelte b/frontend/src/lib/ReloadPrompt.svelte new file mode 100644 index 0000000..ba08e51 --- /dev/null +++ b/frontend/src/lib/ReloadPrompt.svelte @@ -0,0 +1,75 @@ + + +{#if toast} + +{/if} + + diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index b9bb9f5..76f5ca9 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -26,6 +26,10 @@ +{#await import('$lib/ReloadPrompt.svelte') then { default: ReloadPrompt}} + +{/await} + {@html webManifestLink}