mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Add check before accessing vAPI
This commit is contained in:
parent
5c85fdbc32
commit
e2a158d94b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue