add pwa functionality

This commit is contained in:
2023-07-05 21:27:51 +02:00
parent 3209f8b4e0
commit 318b57ece8

View File

@@ -4,7 +4,7 @@
const {needRefresh, updateServiceWorker, offlineReady} = useRegisterSW()
</script>
{#if !$needRefresh}
{#if $needRefresh}
<button title="Update ready" class="icon" on:click={() => updateServiceWorker(true)}>update</button>
{:else if $offlineReady}
<div title="App can now be used offline" class="icon">offline_pin</div>