Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
trigger redirect after update
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicptr committed Dec 5, 2024
1 parent 28857a9 commit b96cb22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ if ("serviceWorker" in navigator) {
const interval = 1000; // 1s
setInterval(() => {
registration.update();

// redirect to new site, after SW is updated
window.location.href = "https://dauntless-builder.com";
}, interval);
},
});
Expand Down

0 comments on commit b96cb22

Please sign in to comment.