Skip to content

Commit

Permalink
Fix retrying on network error in Firefox and Safari (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Woyken committed Jul 13, 2021
1 parent 7aad42d commit 7828c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const retry = require('retry');

const networkErrorMsgs = [
'Failed to fetch', // Chrome
'NetworkError when attempting to fetch resource', // Firefox
'The Internet connection appears to be offline', // Safari
'NetworkError when attempting to fetch resource.', // Firefox
'The Internet connection appears to be offline.', // Safari
'Network request failed' // `cross-fetch`
];

Expand Down

0 comments on commit 7828c0a

Please sign in to comment.