pwa adjustments

This commit is contained in:
2023-07-06 13:17:28 +02:00
parent f970d968c2
commit 0759b2e4ad
2 changed files with 0 additions and 19 deletions

View File

@@ -8,8 +8,6 @@
<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>
{:else}
<div title="Waiting to be offline ready..." class="icon working">offline_bolt</div>
{/if}
<style lang="scss">
@@ -19,18 +17,4 @@
background: transparent;
border: none;
}
@keyframes working {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.working {
animation: working 1s ease alternate-reverse infinite;
}
</style>

View File

@@ -22,9 +22,6 @@
/** @type {import('vite-plugin-pwa/types').RegisterSWOptions} */
const swOptions = {
immediate: true,
onRegisteredSW(url, registration) {
console.log("Service Worker Registered", url, registration)
},
onRegisterError(error) {
console.log("ServiceWorker Registration Error", error)
},