Skip to content

Commit

Permalink
Update seventeen-track-card.js (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ping-localhost authored May 30, 2024
1 parent b2eeb6e commit 48cb75b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seventeen-track-card.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -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();
Expand Down

0 comments on commit 48cb75b

Please sign in to comment.