Skip to content

Commit

Permalink
Update player.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinLiquid authored May 12, 2024
1 parent 7873ed4 commit a23abb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class Player {
// Check if the track is cached
if (localforage.getItem(track.id) != null) {
const cached = (await localforage.getItem(track.id)) as CachedData
this.registerMetadata(track, cached.image)
this.registerMetadata(track, cached.image ?? null)
await this.playFromBuffers(cached.buffers)
return
}
Expand Down

0 comments on commit a23abb6

Please sign in to comment.