Skip to content

Commit

Permalink
fix: update artwork on mood change
Browse files Browse the repository at this point in the history
  • Loading branch information
scooper4711 committed Jul 14, 2024
1 parent 84d64fd commit b47710e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SyrinscapePlayerView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ export class SyrinscapePlayerView extends ItemView {
if (this.title) this.title.textContent = event.title;
}

private updateArtwork(artwork: string) {
if (this.syrinscapeDiv) this.syrinscapeDiv.style.backgroundImage = `url(${artwork})`;
private updateArtwork(event: {artwork: string}) {
if (this.syrinscapeDiv) this.syrinscapeDiv.style.backgroundImage = `url(${event.artwork})`;
}

/**
Expand Down

0 comments on commit b47710e

Please sign in to comment.