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
1 changed files with 1 additions and 2 deletions

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)
) {