fix: fix switch-repeat

fix #1810
This commit is contained in:
JellyBrick
2024-03-28 02:40:29 +09:00
parent 17652b5b77
commit 47dbeff0d0

View File

@ -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) => {