Change: we love unhandled rejection

This commit is contained in:
eight04 2021-12-16 12:19:53 +08:00
parent f47a4351bf
commit 7d95c9940f

View File

@ -96,7 +96,7 @@ bgReady.all.then(() => {
const u = new URL(url);
const m = maybeDistro[u.hostname];
if (!m || m.rx.test(u.pathname)) {
openInstallerPage(tabId, url, {}).catch(console.error);
openInstallerPage(tabId, url, {});
// Silently suppress navigation.
// Don't redirect to the install URL as it'll flash the text!
return {cancel: true};