mirror of https://github.com/gorhill/uBlock.git
Add check before accessing vAPI
This commit is contained in:
parent
5c85fdbc32
commit
e2a158d94b
|
@ -302,7 +302,7 @@ vAPI.SafeAnimationFrame = class {
|
|||
timer = undefined;
|
||||
}
|
||||
document.removeEventListener('securitypolicyviolation', listener);
|
||||
vAPI.shutdown.remove(stop);
|
||||
if ( vAPI ) { vAPI.shutdown.remove(stop); }
|
||||
};
|
||||
|
||||
document.addEventListener('securitypolicyviolation', listener);
|
||||
|
|
Loading…
Reference in New Issue