mirror of https://github.com/gorhill/uBlock.git
Minor code review re. element picker
Avoid potentially adding element twice to the resultset.
This commit is contained in:
parent
d6fcfeb620
commit
37f5b3d642
|
@ -688,8 +688,7 @@ const filterToDOMInterface = (( ) => {
|
|||
src: srcProp,
|
||||
opts: filterTypes[elem.localName],
|
||||
});
|
||||
}
|
||||
if (
|
||||
} else if (
|
||||
typeof elem.currentSrc === 'string' &&
|
||||
reFilter.test(elem.currentSrc)
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue