mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 04:20:07 +02:00
Replace main lyrics listener with promise handler
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user