Skip to content

Commit

Permalink
fixes loop logic
Browse files Browse the repository at this point in the history
  • Loading branch information
EvandroLG committed Aug 5, 2021
1 parent 4396d82 commit a029a83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/playlist/playAudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const playAudio = (

if (files.length === states.audioIndex + 1) {
states.audio = null;
states.audioIndex = 0;

if (states.loop) {
playAudioHelper(files, loop);
Expand Down

0 comments on commit a029a83

Please sign in to comment.