vAPI.tabs.executeScript() can't throw

Related commit:
- aed850978e

No need to mind rejected promise after all,
vAPI.tabs.executeScript() is designed to
not fail -- I had forgotten about this.
This commit is contained in:
Raymond Hill 2020-07-19 18:38:35 -04:00
parent 8d0f84b37a
commit 85aef306d1
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 2 deletions

View File

@ -77,7 +77,6 @@ const initializeTabs = async function() {
toCheck.push(
/^https?:\/\//.test(url)
? vAPI.tabs.executeScript(id, checker)
.then(result => result, ( ) => false)
: false
);
tabIds.push(id);