Skip to content

Commit 0aef42c

Browse files
authored
Update fast-search-card.js
1 parent f2248b1 commit 0aef42c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dist/fast-search-card.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12106,12 +12106,13 @@ class FastSearchCard extends HTMLElement {
1210612106
if (prevBtn) prevBtn.addEventListener('click', () => this.callMusicAssistantService('media_previous_track', item.id));
1210712107

1210812108
if (playPauseBtn) {
12109-
playPauseBtn.addEventListener('click', ((e) => {
12109+
playPauseBtn.setAttribute('data-action', 'play-pause'); // ✅ Das fehlt noch!
12110+
playPauseBtn.addEventListener('click', (e) => {
1211012111
e.preventDefault();
1211112112
e.stopPropagation();
12112-
this.handleQuickAction('play-pause', item);
12113-
}).bind(this));
12114-
}
12113+
this.handleQuickAction(item, playPauseBtn); // ✅ Richtige Reihenfolge!
12114+
});
12115+
}
1211512116

1211612117
if (nextBtn) nextBtn.addEventListener('click', () => this.callMusicAssistantService('media_next_track', item.id));
1211712118

0 commit comments

Comments
 (0)