Skip to content

Commit

Permalink
Remove falsy condition (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz authored Nov 29, 2024
1 parent bee73ad commit 320a9c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/client/build/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ export function registerSW(options: RegisterSWOptions = {}) {
!onNeedRefreshCalled && onOfflineReady?.()
}
else {
if (event.isExternal)
window.location.reload()
else
!onNeedRefreshCalled && onOfflineReady?.()
!onNeedRefreshCalled && onOfflineReady?.()
}
}
else if (!event.isUpdate) {
Expand Down

0 comments on commit 320a9c2

Please sign in to comment.