Skip to content

Commit

Permalink
fix styling of active tab on chrome/ium startup
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Sep 29, 2023
1 parent 3289db0 commit 1d3ec80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@
} catch (e) {
error = e;
}
if (!error || isIgnorableError(error)) {
if (!error || isIgnorableError(err.message = error.message)) {
return data;
}
err.message = error.message;
if (error.stack) err.stack = error.stack + '\n' + err.stack;
return Promise.reject(err);
}
Expand All @@ -158,7 +157,7 @@
try {
return await apiSend(m);
} catch (e) {
return bgReadying && isIgnorableError(e)
return bgReadying && isIgnorableError(e.message)
? await bgReadying && apiSend(m)
: Promise.reject(e);
} finally {
Expand Down

0 comments on commit 1d3ec80

Please sign in to comment.