Add this to your root +layout.svelte in your already working PWA
<script>
import { beforeNavigate } from '$app/navigation';
import { updated } from '$app/stores';
import { onMount } from 'svelte';
Also see the original Pieter Noordhuis's guide
You need:
I hereby claim:
To claim this, I am signing this object: