Remove pointless test for parent node presence

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1240
This commit is contained in:
Raymond Hill 2020-09-11 07:58:01 -04:00
parent 6a5016abde
commit f0ef680a86
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 0 additions and 1 deletions

View File

@ -881,7 +881,6 @@ vAPI.injectScriptlet = function(doc, text) {
return; return;
} }
for ( const node of nodes ) { for ( const node of nodes ) {
if ( node.parentElement === null ) { continue; }
node.setAttribute(this.masterToken, ''); node.setAttribute(this.masterToken, '');
node.setAttribute(styleToken, ''); node.setAttribute(styleToken, '');
} }