mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-21 18:02:34 +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