flippable cards
This commit is contained in:
@@ -21,6 +21,11 @@ export const usePlayerStore = defineStore('player', {
|
||||
},
|
||||
|
||||
playTrack(track?: Track) {
|
||||
// load compile if not allready loaded
|
||||
// play if track is not already played
|
||||
// else pause
|
||||
|
||||
|
||||
if (track) this.setTrack(track)
|
||||
if (!this.currentTrack || !this.audio) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user