Skip to content

Commit

Permalink
possibly cause an infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Oct 3, 2024
1 parent ef70445 commit 1a5e2b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/bento.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function registerServiceWorker() {
console.info("Service worker installing")
} else if (registration.waiting) {
console.info("Service worker installed")
location.reload()
} else if (registration.active) {
console.info("Service worker active")
}
Expand Down
2 changes: 1 addition & 1 deletion public/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="@secret-types/serviceworker" />
// update this when changing the service worker
const SERVICE_WORKER_VERSION = "v19"
const SERVICE_WORKER_VERSION = "v20"

const addResourcesToCache = async resources => {
const cache = await caches.open(SERVICE_WORKER_VERSION)
Expand Down

0 comments on commit 1a5e2b7

Please sign in to comment.