mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
fix: plugin load
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
||||
@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user