diff --git a/src/main.ts b/src/main.ts index 301612f0f..90e060bb8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -86,9 +86,8 @@ app }) // Register auth service worker after Pinia is initialized (cloud-only) -// Wait for registration to complete before mounting to ensure SW controls the page if (isCloud) { - await import('@/platform/auth/serviceWorker') + void import('@/platform/auth/serviceWorker') } app.mount('#vue-app') diff --git a/src/platform/auth/serviceWorker/index.ts b/src/platform/auth/serviceWorker/index.ts index 518723fc7..c83e238d5 100644 --- a/src/platform/auth/serviceWorker/index.ts +++ b/src/platform/auth/serviceWorker/index.ts @@ -5,5 +5,5 @@ import { isCloud } from '@/platform/distribution/types' * Tree-shaken for desktop/localhost builds via compile-time constant. */ if (isCloud) { - await import('./register') + void import('./register') } diff --git a/src/platform/auth/serviceWorker/register.ts b/src/platform/auth/serviceWorker/register.ts index 0f44f3b9b..eda954dba 100644 --- a/src/platform/auth/serviceWorker/register.ts +++ b/src/platform/auth/serviceWorker/register.ts @@ -54,4 +54,4 @@ function setupCacheInvalidation(): void { }) } -await registerAuthServiceWorker() +void registerAuthServiceWorker()