fix: use isPlaying() in syncNowPlaying to handle bridge/native mode

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-05-13 02:00:26 +02:00
1 parent 0c5fe53f13
commit 1e61d35018
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -425,6 +425,8 @@ export function togglePlay() {
if(S.audio.src) S.audio.paused ? S.audio.play() : S.audio.pause();
}
export const isPlaying = () => HAS_BRIDGE ? _nativePlaying : !S.audio.paused;
export function setPlayIcon(playing) {
document.getElementById('play-icon').innerHTML = playing
? '<rect x="6" y="4" width="4" height="16"/><rect x="14" y="4" width="4" height="16"/>'