mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Test for presence of vAPI in deferred methods
This commit is contained in:
parent
198c20db76
commit
391b2a4e67
1 changed files with 2 additions and 0 deletions
|
|
@ -257,6 +257,7 @@ vAPI.SafeAnimationFrame = class {
|
||||||
let timer;
|
let timer;
|
||||||
|
|
||||||
const send = function() {
|
const send = function() {
|
||||||
|
if ( self.vAPI instanceof Object === false ) { return; }
|
||||||
vAPI.messaging.send('scriptlets', {
|
vAPI.messaging.send('scriptlets', {
|
||||||
what: 'securityPolicyViolation',
|
what: 'securityPolicyViolation',
|
||||||
type: 'net',
|
type: 'net',
|
||||||
|
|
@ -1066,6 +1067,7 @@ vAPI.DOMFilterer = class {
|
||||||
};
|
};
|
||||||
|
|
||||||
const doSurvey = ( ) => {
|
const doSurvey = ( ) => {
|
||||||
|
if ( self.vAPI instanceof Object === false ) { return; }
|
||||||
const t0 = performance.now();
|
const t0 = performance.now();
|
||||||
const hashes = [];
|
const hashes = [];
|
||||||
const nodes = pendingNodes;
|
const nodes = pendingNodes;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue