Skip to content

Commit

Permalink
Fixed update bug in rmw template cra-template/pwa#13
Browse files Browse the repository at this point in the history
  • Loading branch information
masterciel committed Nov 12, 2020
1 parent 089f500 commit 478490d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rmw-shell/cra-template-rmw/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cra-template-rmw",
"version": "2.1.11",
"version": "2.1.12",
"keywords": [
"react",
"create-react-app",
Expand Down
2 changes: 1 addition & 1 deletion packages/rmw-shell/cra-template-rmw/template/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ render(
serviceWorkerRegistration.register({
onUpdate: (reg) => {
console.log('Update', reg)
window.update = reg.waiting.postMessage({ type: 'SKIP_WAITING' })
window.update = () => reg.waiting.postMessage({ type: 'SKIP_WAITING' })
},
})

0 comments on commit 478490d

Please sign in to comment.