diff --git a/src/ui/index.svelte b/src/ui/index.svelte index 0c26087..de0d0e4 100644 --- a/src/ui/index.svelte +++ b/src/ui/index.svelte @@ -19,6 +19,7 @@ clearTimeout(loadTimeout) loadTimeout = setTimeout(() => apply(store.highlights), 3000) as any as number } + $effect.root(()=>{if (document.readyState) onWindowLoad()}) //unmount $effect(()=>cleanup)