From 7d95c9940fb9c87e765a0ce7a2e52541138cf3b4 Mon Sep 17 00:00:00 2001 From: eight04 Date: Thu, 16 Dec 2021 12:19:53 +0800 Subject: [PATCH] Change: we love unhandled rejection --- background/usercss-install-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/usercss-install-helper.js b/background/usercss-install-helper.js index bc331fab..0773ffb5 100644 --- a/background/usercss-install-helper.js +++ b/background/usercss-install-helper.js @@ -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};