Skip to content

Commit

Permalink
fix: fix switch-repeat
Browse files Browse the repository at this point in the history
fix #1810
  • Loading branch information
JellyBrick committed Mar 27, 2024
1 parent 17652b5 commit 47dbeff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function onApiLoaded() {
});
window.ipcRenderer.on('ytmd:switch-repeat', (_, repeat = 1) => {
for (let i = 0; i < repeat; i++) {
document.querySelector<HTMLElement & { onRepeatButtonTap: () => void }>('ytmusic-player-bar')?.onRepeatButtonTap();
document.querySelector<HTMLElement & { onRepeatButtonClick: () => void }>('ytmusic-player-bar')?.onRepeatButtonClick();
}
});
window.ipcRenderer.on('ytmd:update-volume', (_, volume: number) => {
Expand Down

0 comments on commit 47dbeff

Please sign in to comment.