fix(browser-extension): property didn't exist

This commit is contained in:
wanhose 2023-06-10 17:28:33 +02:00
parent f3c05232af
commit 31e06256fa

View File

@ -118,7 +118,7 @@ const match = (node, skipMatch) => {
);
} else {
// 2023-06-10: fix edge case force cleaning on children if no attributes
if (data?.commonWords && node.outerHTML.match(new RegExp(commonWords?.join('|')))) {
if (data?.commonWords && node.outerHTML.match(new RegExp(data.commonWords.join('|')))) {
forceClean(node);
}
}