Skip to content

Commit

Permalink
fix(pwa-boundary): catch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Nov 3, 2022
1 parent 17fdf46 commit ecd8b21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adapter/src/components/PWALoadingBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export const PWALoadingBoundary = ({ children }) => {
setPWAReady(true)
}
}
checkRegistration()
checkRegistration().catch((err) => {
console.error(err)
setPWAReady(true)
})
}, [offlineInterface])

return pwaReady ? children : null
Expand Down

0 comments on commit ecd8b21

Please sign in to comment.