From 0f14d8da9425e92618dce57bdf95ca79f9ffa3cf Mon Sep 17 00:00:00 2001 From: Armin Date: Wed, 8 Jul 2026 19:46:57 +0200 Subject: [PATCH] fix stop button guard to work after clear --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 4df0ca2..0a260da 100644 --- a/index.html +++ b/index.html @@ -1625,7 +1625,7 @@ pauseBtn.addEventListener('click', () => { } }); stopBtn.addEventListener('click', () => { - if (currentIndex < 0) return; + if (currentIndex < 0 && audio.paused) return; audio.pause(); if (isCrossfading) audioNext.pause(); audio.currentTime = 0;