fix: service worker requires security context (closes #1790)

This commit is contained in:
Phan An 2024-07-15 09:57:35 +02:00
parent 30463d4d30
commit 417a4ce904

View file

@ -24,4 +24,4 @@ createApp(App)
*/
.mount('#app')
navigator.serviceWorker.register('./sw.js')
navigator.serviceWorker?.register('./sw.js')