Skip to content

Commit

Permalink
Fix toggle play
Browse files Browse the repository at this point in the history
  • Loading branch information
ngekoding committed May 25, 2023
1 parent 9439864 commit f9057e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function usePlayer(stations) {

function togglePlay(index) {
const soundIndex = index ?? playingIndex.value
if (playing.value) {
if (playing.value && playingIndex.value == soundIndex) {
stop()
} else {
play(soundIndex)
Expand Down

0 comments on commit f9057e9

Please sign in to comment.