mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
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:
parent
8d0f84b37a
commit
85aef306d1
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue