style: auto-fix linting issues

This commit is contained in:
JulienMaille 2026-01-16 17:37:16 +00:00 committed by github-actions[bot]
parent 993698b666
commit 9fc20c973b

View file

@ -317,10 +317,10 @@ function initializeSmoothSliders(audioPlayer, player) {
const updateSeekUI = (position) => {
if (!isNaN(audioPlayer.duration)) {
progressFill.style.width = `${position * 100}%`;
if (currentTimeEl) {
currentTimeEl.textContent = formatTime(position * audioPlayer.duration);
}
progressFill.style.width = `${position * 100}%`;
if (currentTimeEl) {
currentTimeEl.textContent = formatTime(position * audioPlayer.duration);
}
}
};
@ -428,7 +428,8 @@ function initializeSmoothSliders(audioPlayer, player) {
});
progressBar.addEventListener('click', (e) => {
if (!isSeeking) { // Only handle click if not result of a drag release
if (!isSeeking) {
// Only handle click if not result of a drag release
seek(progressBar, e, (position) => {
if (!isNaN(audioPlayer.duration) && audioPlayer.duration > 0 && audioPlayer.duration !== Infinity) {
audioPlayer.currentTime = position * audioPlayer.duration;