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 a23abb6 commit f6c61d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ class Player {
this.state = 'loading'

// Check if the track is cached
if (localforage.getItem(track.id) != null) {
if (await localforage.getItem(track.id) != null) {
const cached = (await localforage.getItem(track.id)) as CachedData
this.registerMetadata(track, cached.image ?? null)
this.registerMetadata(track, cached.image)
await this.playFromBuffers(cached.buffers)
return
}
Expand Down

0 comments on commit f6c61d8

Please sign in to comment.