mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-07 02:22:52 +00:00
add pwa functionality
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user