Files
boursecu_user/dev-dist/registerSW.js
T
mohmdsdgandCursor 0547b9ebaa 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>
2026-11-06 11:42:23 +03:30

1 line
118 B
JavaScript

if('serviceWorker' in navigator) navigator.serviceWorker.register('/dev-sw.js?dev-sw', { scope: '/', type: 'module' })