From 2a4b7d88ddb967916fda7fab9b0b95cfd9891330 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)