Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 30, 2024
1 parent 62d6e9b commit 518c17a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/electron/frontend/core/components/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ export class Dashboard extends LitElement {
this.main.onTransition(previousId); // Revert back to previous page
const hasHTML = /<[^>]*>/.test(e);
page.notify(
hasHTML ? e.message : `<h4 style="margin: 0">Fallback to previous page after error occurred</h4><small>${e}</small>`,
hasHTML
? e.message
: `<h4 style="margin: 0">Fallback to previous page after error occurred</h4><small>${e}</small>`,
"error"
);
});
Expand Down

0 comments on commit 518c17a

Please sign in to comment.