fix(user): stop Pinia stores from running before the app boots

Calling useStore at import time crashed startup, and the dev service worker was registered as a classic script.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-06 11:42:23 +03:30
co-authored by Cursor
parent 0f50ec315c
commit 0547b9ebaa
4 changed files with 193 additions and 163 deletions
+1 -1
View File
@@ -1 +1 @@
if('serviceWorker' in navigator) navigator.serviceWorker.register('/dev-sw.js?dev-sw', { scope: '/', type: 'classic' })
if('serviceWorker' in navigator) navigator.serviceWorker.register('/dev-sw.js?dev-sw', { scope: '/', type: 'module' })