fix(browser-extension): one last minor bug

This commit is contained in:
wanhose 2022-05-12 20:41:13 +02:00
parent 59e1e5be61
commit edc4cd6a8a

View File

@ -76,7 +76,11 @@ const check = (node) =>
* @returns {void}
*/
const clean = (nodes) => nodes.filter(check).forEach((node) => (node.outerHTML = ''));
const clean = (nodes) => {
if (selectors.length) {
nodes.filter(check).forEach((node) => (node.outerHTML = ''));
}
};
/**
* @description Fixes scroll issues