13 lines
324 B
JavaScript
13 lines
324 B
JavaScript
const removeListInAddendum = ({ document }) => {
|
|
const article = document.querySelector('#addendum');
|
|
if (article) {
|
|
const lists = article.querySelectorAll('ul');
|
|
lists.forEach((list) =>
|
|
list.innerHTML.includes('undefined') &&
|
|
list.parentNode.removeChild(list)
|
|
);
|
|
}
|
|
}
|
|
|
|
module.exports = removeListInAddendum;
|