Fixed linter errors

This commit is contained in:
squidfunk
2022-10-16 17:16:10 +07:00
parent b0afb7f1df
commit 2b08c42c09
6 changed files with 9 additions and 9 deletions

View File

@@ -80,7 +80,7 @@ if (typeof Element !== "undefined") {
/* Replace children and create text nodes */
for (let i = nodes.length - 1; i >= 0; i--) {
let node = nodes[i]
if (typeof node !== "object")
if (typeof node === "string")
node = document.createTextNode(node)
else if (node.parentNode)
node.parentNode.removeChild(node)