mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 05:50:52 +02:00
fix stop button guard to work after clear
This commit is contained in:
parent
b66de074ef
commit
0f14d8da94
1 changed files with 1 additions and 1 deletions
|
|
@ -1625,7 +1625,7 @@ pauseBtn.addEventListener('click', () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
stopBtn.addEventListener('click', () => {
|
stopBtn.addEventListener('click', () => {
|
||||||
if (currentIndex < 0) return;
|
if (currentIndex < 0 && audio.paused) return;
|
||||||
audio.pause();
|
audio.pause();
|
||||||
if (isCrossfading) audioNext.pause();
|
if (isCrossfading) audioNext.pause();
|
||||||
audio.currentTime = 0;
|
audio.currentTime = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue