fix: minor bugs

This commit is contained in:
wanhose 2022-01-20 15:40:41 +01:00
parent c2f3402e14
commit 63e0f9c733
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ const check = (node) =>
node instanceof HTMLElement &&
node.parentElement &&
!["BODY", "HTML"].includes(node.tagName) &&
!(node.id && ["APP", "ROOT"].includes(node.id.toUpperCase()));
!(node.id && ["APP", "ROOT"].includes(node.id.toUpperCase?.()));
/**
* @description Cleans DOM