Skip to content

Commit

Permalink
removed update timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardZaydler committed Oct 22, 2024
1 parent 9bc0907 commit ecc8f0e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/serviceWorkerRegistration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ export function register(onUpdate: () => void) {
try {
const registration = await navigator.serviceWorker.register("/service-worker.js");

setInterval(async () => {
try {
await registration.update();
} catch (error) {
console.error("Error updating service worker:", error);
}
}, 1000 * 60);

registration.onupdatefound = () => {
const installingWorker = registration.installing;
if (installingWorker) {
Expand Down

0 comments on commit ecc8f0e

Please sign in to comment.