mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
fix path to service worker
This commit is contained in:
@@ -13,7 +13,7 @@ function invokeServiceWorkerUpdateFlow (registration) {
|
|||||||
|
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
window.addEventListener('load', async () => {
|
window.addEventListener('load', async () => {
|
||||||
const registration = await navigator.serviceWorker.register('/service-worker.js')
|
const registration = await navigator.serviceWorker.register('service-worker.js')
|
||||||
// ensure the case when the updatefound event was missed is also handled
|
// ensure the case when the updatefound event was missed is also handled
|
||||||
// by re-invoking the prompt when there's a waiting Service Worker
|
// by re-invoking the prompt when there's a waiting Service Worker
|
||||||
if (registration.waiting) {
|
if (registration.waiting) {
|
||||||
|
|||||||
Reference in New Issue
Block a user