Fix error in skooma

This commit is contained in:
Talia 2022-04-12 22:35:44 +02:00
parent fdc7fca7e7
commit 2a4b7d88dd
Signed by: darkwiiplayer
GPG Key ID: 7808674088232B3E
1 changed files with 1 additions and 1 deletions

View File

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