mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
feat(plugin): add onPlayerApiReady hook
Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
@ -32,7 +32,7 @@ function registerMPRIS(win: BrowserWindow) {
|
||||
|
||||
const player = setupMPRIS();
|
||||
|
||||
ipcMain.handle('apiLoaded', () => {
|
||||
ipcMain.on('ytmd:player-api-loaded', () => {
|
||||
win.webContents.send('setupSeekedListener', 'mpris');
|
||||
win.webContents.send('setupTimeChangedListener', 'mpris');
|
||||
win.webContents.send('setupRepeatChangedListener', 'mpris');
|
||||
|
||||
Reference in New Issue
Block a user