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,
|
src: srcProp,
|
||||||
opts: filterTypes[elem.localName],
|
opts: filterTypes[elem.localName],
|
||||||
});
|
});
|
||||||
}
|
} else if (
|
||||||
if (
|
|
||||||
typeof elem.currentSrc === 'string' &&
|
typeof elem.currentSrc === 'string' &&
|
||||||
reFilter.test(elem.currentSrc)
|
reFilter.test(elem.currentSrc)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue