Fix checking for template objects in skooma.js

This commit is contained in:
Talia 2021-02-23 18:55:32 +01:00
parent d703ae148d
commit 5f27242b3f
No known key found for this signature in database
GPG key ID: AD727AD22802D0D6

View file

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