feat(browser-extension): minor improvement if tags are not loaded

This commit is contained in:
wanhose 2023-09-25 18:47:56 +02:00
parent cb8f173226
commit 072f684e74

View File

@ -112,7 +112,7 @@ function match(element, skipMatch) {
return false;
}
if (data?.tags.includes(element.tagName?.toUpperCase?.())) {
if (!data?.tags?.length || data.tags.includes(element.tagName?.toUpperCase?.())) {
return false;
}