Skip to content

Commit

Permalink
Merge pull request #274 from tilfinltd/fix/console-err-undefined
Browse files Browse the repository at this point in the history
Suppress unnecessary error output
  • Loading branch information
tilfin authored Nov 19, 2022
2 parents 56f8717 + 83e2a57 commit bcb959f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { StorageRepository, SyncStorageRepository } from './lib/storage_reposito
function openOptions() {
if (window.chrome) {
chrome.runtime.openOptionsPage(err => {
console.error(`Error: ${err}`);
if (err) console.error(`Error: ${err}`);
});
} else if (window.browser) {
window.browser.runtime.openOptionsPage().catch(err => {
console.error(`Error: ${err}`);
if (err) console.error(`Error: ${err}`);
});
}
}
Expand Down

0 comments on commit bcb959f

Please sign in to comment.