Add check before accessing vAPI

This commit is contained in:
Raymond Hill 2023-03-31 08:28:09 -04:00
parent 5c85fdbc32
commit e2a158d94b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

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