mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
feat(plugin): add onPlayerApiReady hook
Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
@ -211,7 +211,7 @@ export default (
|
||||
songControls = getSongControls(win);
|
||||
|
||||
let currentSeconds = 0;
|
||||
on('apiLoaded', () => send('setupTimeChangedListener'));
|
||||
on('ytmd:player-api-loaded', () => send('setupTimeChangedListener'));
|
||||
|
||||
on('timeChanged', (t: number) => {
|
||||
currentSeconds = t;
|
||||
|
||||
Reference in New Issue
Block a user