Skip to content

Commit

Permalink
put back update when service worker is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed Sep 29, 2024
1 parent 9b57e67 commit e00db25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/app/gen/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function goappSetupNotifyUpdate(registration) {
const newSW = registration.installing;
newSW.addEventListener("statechange", (event) => {
switch (newSW.state) {
case "installed":
case "activated":
goappOnUpdate();
}
});
Expand Down
Loading

0 comments on commit e00db25

Please sign in to comment.