Fix checking for template objects in skooma.js

This commit is contained in:
Talia 2021-02-23 18:55:32 +01:00
parent 46864950b2
commit 4aa9a658b4
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -8,7 +8,7 @@ const parseAttribute = (attribute) => {
} }
const parseArgs = (element, args) => { const parseArgs = (element, args) => {
if ("content" in element) element = element.content if (element.content) element = element.content
for (arg of args) for (arg of args)
if (typeof(arg) == "string") if (typeof(arg) == "string")
element.appendChild(document.createTextNode(arg)) element.appendChild(document.createTextNode(arg))