diff --git a/dist/clock-card.js b/dist/clock-card.js index 370896d..7ce4d07 100644 --- a/dist/clock-card.js +++ b/dist/clock-card.js @@ -76,7 +76,7 @@ class ClockCard extends HTMLElement { card.appendChild(this.content); this.appendChild(card); var canvas = this.content.children[0]; - var dateTimeP = config.display_date ? caption ? this.content.children[2] : this.content[1] : null; + var dateTimeP = config.display_date ? caption ? this.content.children[2] : this.content.children[1] : null; var ctx = canvas.getContext("2d"); var radius = canvas.height / 2; ctx.translate(radius, radius); @@ -181,4 +181,4 @@ class ClockCard extends HTMLElement { } } -customElements.define('clock-card', ClockCard); \ No newline at end of file +customElements.define('clock-card', ClockCard);