Skip to content

Commit

Permalink
🎨 Add artwork url fallback if failing fetch of base64 #385 (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkih authored Aug 17, 2020
1 parent 8a889f9 commit 2fd4c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class MiniMediaPlayer extends LitElement {
}
this.thumbnail = artwork;
} catch (error) {
this.thumbnail = '';
this.thumbnail = `url(${picture})`;
}
}
return !!(hasArtwork && this.thumbnail);
Expand Down

0 comments on commit 2fd4c79

Please sign in to comment.