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
1 changed files with 1 additions and 1 deletions

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))