mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-25 03:43:25 +01:00
Fix spurious error message re. bootstrap() not being present
Need `?.` before parenthesis for optional chaining to apply on method call. Related commit: https://github.com/gorhill/uBlock/commit/5133991f7e
This commit is contained in:
parent
d4f15ca635
commit
b3408a46d1
@ -29,7 +29,7 @@
|
||||
try {
|
||||
const status = vAPI.uBO !== true;
|
||||
if ( status === false && vAPI.bootstrap ) {
|
||||
self.requestIdleCallback(( ) => vAPI?.bootstrap());
|
||||
self.requestIdleCallback(( ) => vAPI?.bootstrap?.());
|
||||
}
|
||||
return status;
|
||||
} catch(ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user