Skip to content

Commit

Permalink
Handle "Load failed" message on Safari (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Mar 27, 2023
1 parent 4d8ec50 commit 5c6e02c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function handlePortListenerErrors(listener) {
let {message} = error;
if ([
'Failed to fetch',
'Load failed', // Safari
'NetworkError when attempting to fetch resource.',
'Could not connect to the server.',
].includes(message)) {
Expand Down

0 comments on commit 5c6e02c

Please sign in to comment.