From 85aef306d18ec4858908c8bf2f8af5cd0de6ef08 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 19 Jul 2020 18:38:35 -0400 Subject: [PATCH] vAPI.tabs.executeScript() can't throw Related commit: - https://github.com/gorhill/uBlock/commit/aed850978e08e0dd084227078fae4110c41319ab No need to mind rejected promise after all, vAPI.tabs.executeScript() is designed to not fail -- I had forgotten about this. --- src/js/start.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/start.js b/src/js/start.js index 5acc14cdf..b4ee201db 100644 --- a/src/js/start.js +++ b/src/js/start.js @@ -76,8 +76,7 @@ const initializeTabs = async function() { // were loaded before uBO launched. toCheck.push( /^https?:\/\//.test(url) - ? vAPI.tabs.executeScript(id, checker) - .then(result => result, ( ) => false) + ? vAPI.tabs.executeScript(id, checker) : false ); tabIds.push(id);