From ad911d6edd0fa76431284ef6283bb07da45d808d Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 11 Aug 2022 00:03:45 -0400 Subject: A few small fixes --- scripts/cards/card.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/cards/card.js') diff --git a/scripts/cards/card.js b/scripts/cards/card.js index 7246db3..17d8994 100644 --- a/scripts/cards/card.js +++ b/scripts/cards/card.js @@ -81,6 +81,16 @@ class Card { static generateObjectCard (data, el) { // Generate card areas. + if (typeof data.style == "object") { + for (let i in data.style) { + el.style.setProperty(i, data.style[i]); + } + } + + if(data.assetURL == null) { + data.assetURL = "./"; + } + for (let i of CardPos) { if (typeof data[i] == "object") -- cgit v1.2.3