Skip to content

Commit

Permalink
fix(BrowserController): Don't spam setIcon warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed May 19, 2024
1 parent 6e42b0d commit 22d3787
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/lib/browser/BrowserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,10 @@ export default class BrowserController {
}

if (icon[status]) {
try {
if (browser.browserAction) {
await browser.browserAction.setIcon(icon[status])
} catch (e) {
console.warn(e)
}
try {
} else if (browser.action) {
await browser.action.setIcon(icon[status])
} catch (e) {
console.warn(e)
}
}
}
Expand Down

0 comments on commit 22d3787

Please sign in to comment.