Skip to content

Commit

Permalink
test response exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Mar 23, 2024
1 parent ee0ceb0 commit 8b6d35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ export default class UpdateManager {
}
} else {
control.reloading = false
if ((response as Response).status === 0) {
if (response && (response as Response).status === 0) {
// console.log('Network error refreshing the data. Retrying in ' +
// retryTimeout / 1000)
control.reloading = true
Expand Down

0 comments on commit 8b6d35b

Please sign in to comment.