Skip to content

Commit

Permalink
Warn about unloaded/updated extension errors in Chromium (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored Jun 23, 2024
1 parent fade994 commit daccae8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ export const showErrorModal = exception => {
showModal({
title: 'Something went wrong.',
message: [
[exception.body?.errors?.[0]?.detail, exception.errors?.[0]?.detail, exception.message]
[
exception.body?.errors?.[0]?.detail,
exception.errors?.[0]?.detail,
exception.message,
browser.runtime?.id === undefined && 'Please refresh this browser tab!'
]
.filter(Boolean)
.join('\n\n')
],
Expand Down

0 comments on commit daccae8

Please sign in to comment.