1
0
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:
Raymond Hill 2024-10-19 12:09:48 -04:00
parent d4f15ca635
commit b3408a46d1
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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) {