mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 10:09:38 +02:00
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
Block a user