From 3be6f513b345f0f2fbadff8c8d44f08c3ab1e1da Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 12 Apr 2022 22:35:44 +0200 Subject: [PATCH] Fix error in skooma --- skooma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skooma.js b/skooma.js index dbaac96..0d37468 100644 --- a/skooma.js +++ b/skooma.js @@ -25,7 +25,7 @@ const insertStyles = (rule, styles) => { const parseAttribute = (attribute) => { if (typeof attribute == "string" || typeof attribute == "number") return attribute - else if ("join" in attribute) + else if (attribute && "join" in attribute) return attribute.join(" ") else return JSON.stringify(attribute)