mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Replace main lyrics listener with promise handler
This commit is contained in:
parent
d38c846e80
commit
98fa47348c
2 changed files with 18 additions and 13 deletions
|
|
@ -2,7 +2,8 @@ import { IpcRendererEvent, ipcRenderer } from 'electron';
|
|||
import { InternetProviderLyricResponse, QueueSong } from '/@/renderer/api/types';
|
||||
|
||||
const fetchRemoteLyrics = (song: QueueSong) => {
|
||||
ipcRenderer.send('lyric-fetch', song);
|
||||
const result = ipcRenderer.invoke('lyric-fetch-manual', song);
|
||||
return result;
|
||||
};
|
||||
|
||||
const remoteLyricsListener = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue