Skip to content

Commit

Permalink
fix typo classList (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt8707 authored Feb 27, 2021
1 parent dccf080 commit 3c7992e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patch/hui-picture-elements-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ customElements.whenDefined("hui-picture-elements-card").then(() => {

for (const [i, el] of this._elements.entries()) {
const config = this._config.elements[i];
if (config?.card_mod?.class) el.clasList.add(config.card_mod.class);
if (config?.card_mod?.class) el.classList.add(config.card_mod.class);
if (config?.type)
el.classList.add(`type-${config.type.replace(":", "-")}`);
applyToElement(el, "element", config?.card_mod?.style, { config });
Expand Down

0 comments on commit 3c7992e

Please sign in to comment.