mirror of https://github.com/gorhill/uBlock.git
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue