mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
rename listener function
This commit is contained in:
parent
85a10c799a
commit
3aef2a80a7
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue