Skip to content

Commit

Permalink
fix: pause and play not working
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 committed May 4, 2021
1 parent e52fc13 commit dc6a6ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/player_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,11 @@
}

if (playNow) {
this.stopAll();
this.playlist.forEach((i) => {
if (i.howl && i.howl !== this.currentHowl) {
i.howl.stop();
}
});
this.currentHowl.play();
}
}
Expand Down

0 comments on commit dc6a6ee

Please sign in to comment.