1
0
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:
Raymond Hill 2020-07-05 09:12:45 -04:00
parent d6fcfeb620
commit 37f5b3d642
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -688,8 +688,7 @@ const filterToDOMInterface = (( ) => {
src: srcProp,
opts: filterTypes[elem.localName],
});
}
if (
} else if (
typeof elem.currentSrc === 'string' &&
reFilter.test(elem.currentSrc)
) {