mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 12:30:06 +02:00
rename listener function
This commit is contained in:
@@ -35,7 +35,7 @@ export const Lyrics = () => {
|
||||
const songRef = useRef<string | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
lyrics?.retrieveRemoteLyrics(
|
||||
lyrics?.remoteLyricsListener(
|
||||
(_event: any, songName: string, lyricSource: string, lyric: string) => {
|
||||
if (songName === songRef.current) {
|
||||
setSource(lyricSource);
|
||||
|
||||
Reference in New Issue
Block a user