From 4aa9a658b42ca8be08519b6cd7c2a03e6a0a920c Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 23 Feb 2021 18:55:32 +0100 Subject: [PATCH] Fix checking for template objects in skooma.js --- skooma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skooma.js b/skooma.js index 8cbe84a..0f78246 100644 --- a/skooma.js +++ b/skooma.js @@ -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))