fix: plugin load

This commit is contained in:
JellyBrick
2023-11-11 19:23:17 +09:00
parent de0b228ae8
commit 1f96b6b44d
10 changed files with 69 additions and 99 deletions

View File

@ -20,7 +20,7 @@ export default builder.createMain(({ handle, getConfig }) =>{
revRomanized = true;
}
handle('search-genius-lyrics', async (_, extractedSongInfo: SongInfo) => {
handle('search-genius-lyrics', async (extractedSongInfo: SongInfo) => {
const metadata = extractedSongInfo;
return await fetchFromGenius(metadata);
});

View File

@ -24,7 +24,7 @@ export default builder.createRenderer(({ on, invoke }) => ({
let unregister: (() => void) | null = null;
on('update-song-info', (_, extractedSongInfo: SongInfo) => {
on('update-song-info', (extractedSongInfo: SongInfo) => {
unregister?.();
setTimeout(async () => {