mirror of https://github.com/gorhill/uBlock.git
Remove pointless test for parent node presence
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1240
This commit is contained in:
parent
6a5016abde
commit
f0ef680a86
|
@ -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, '');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue