Skip to content

Commit

Permalink
fix progressbar not update
Browse files Browse the repository at this point in the history
  • Loading branch information
yuygfgg committed Aug 25, 2024
1 parent 44397b8 commit ab0e856
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ <h3>Lyrics</h3>
);
const progressPercent =
(audioPlayer.currentTime / audioPlayer.duration) * 100;
document.getElementById(
"progress"
).style.width = `${progressPercent}%`;
lrc.play(currentTime);
};
audioPlayer.onpause = () => {
Expand Down

0 comments on commit ab0e856

Please sign in to comment.