diff --git a/src/lib/components/OfflineSyncButton.svelte b/src/lib/components/OfflineSyncButton.svelte
index 5b2fb81..9e3d42e 100644
--- a/src/lib/components/OfflineSyncButton.svelte
+++ b/src/lib/components/OfflineSyncButton.svelte
@@ -19,7 +19,8 @@
onMount(async () => {
mounted = true;
- await pwaStore.checkAvailability();
+ // Initialize PWA store (checks standalone mode, starts auto-sync if needed)
+ await pwaStore.initialize();
});
async function handleSync() {
@@ -147,7 +148,7 @@
}
-{#if mounted}
+{#if mounted && pwaStore.isStandalone}