mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-11 12:32:55 +00:00
add pwa functionality
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
const {needRefresh, updateServiceWorker, offlineReady} = useRegisterSW()
|
const {needRefresh, updateServiceWorker, offlineReady} = useRegisterSW()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if !$needRefresh}
|
{#if $needRefresh}
|
||||||
<button title="Update ready" class="icon" on:click={() => updateServiceWorker(true)}>update</button>
|
<button title="Update ready" class="icon" on:click={() => updateServiceWorker(true)}>update</button>
|
||||||
{:else if $offlineReady}
|
{:else if $offlineReady}
|
||||||
<div title="App can now be used offline" class="icon">offline_pin</div>
|
<div title="App can now be used offline" class="icon">offline_pin</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user