mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-28 00:32:42 -04:00
Fixed linter errors
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user