diff --git a/index.html b/index.html index 42fb548..4df0ca2 100644 --- a/index.html +++ b/index.html @@ -136,11 +136,6 @@ footer .footer-track { flex: 1; min-width: 0; white-space: nowrap; overflow: hid
-
-
-

No music loaded

-

Drag a folder of audio files onto this window.

-
0:00 @@ -728,7 +723,6 @@ const scanning = document.getElementById('scanning'); const scanningText = scanning.querySelector('span'); const trackList = document.getElementById('trackList'); const trackCount = document.getElementById('trackCount'); -const emptyState = document.getElementById('emptyState'); const player = document.getElementById('player'); const playlist = document.getElementById('playlist'); const footer = document.getElementById('footer'); @@ -1452,7 +1446,6 @@ function renderTracks() { trackList.appendChild(div); }); const hasT = tracks.length > 0 || !audio.paused; - emptyState.style.display = hasT ? 'none' : 'flex'; canvas.style.display = hasT ? 'block' : 'none'; progressRow.style.display = hasT ? 'flex' : 'none'; } @@ -1623,7 +1616,7 @@ playBtn.addEventListener('click', () => { } }); pauseBtn.addEventListener('click', () => { - if (currentIndex < 0) return; + if (currentIndex < 0 && audio.paused) return; if (audio.paused) { audio.play().catch(() => {}); } else {