diff --git a/seventeen-track-card.js b/seventeen-track-card.js index 234e9f4..b69bf94 100644 --- a/seventeen-track-card.js +++ b/seventeen-track-card.js @@ -1,4 +1,3 @@ -console.info("%c SeventeenTrackCard %c v1.1.1 ", "color: orange; font-weight: bold; background: black", "color: white; font-weight: bold; background: dimgray"), class SeventeenTrackCard extends HTMLElement { setConfig(config) { if (!config.entity) { @@ -18,6 +17,8 @@ class SeventeenTrackCard extends HTMLElement { const sortPackages = this.config.sort || false; const packages = state.attributes.packages || []; + console.info("%c SeventeenTrackCard %c v1.1.2 ", "color: orange; font-weight: bold; background: black", "color: white; font-weight: bold; background: dimgray"); + if (sortPackages) { packages.sort((first, second) => { return new Date(first.timestamp).getTime() - new Date(second.timestamp).getTime();