mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 20:31:46 +00:00
feat: rename IPC
This commit is contained in:
@ -101,7 +101,7 @@ export const onMainLoad = async ({
|
||||
|
||||
config ??= await getConfig();
|
||||
setConfig({ isInPiP });
|
||||
on('picture-in-picture', () => {
|
||||
on('plugin:toggle-picture-in-picture', () => {
|
||||
togglePiP();
|
||||
});
|
||||
|
||||
|
||||
@ -90,7 +90,7 @@ const togglePictureInPicture = async () => {
|
||||
} catch {}
|
||||
}
|
||||
|
||||
window.ipcRenderer.send('picture-in-picture');
|
||||
window.ipcRenderer.send('plugin:toggle-picture-in-picture');
|
||||
return false;
|
||||
};
|
||||
// For UI (HTML)
|
||||
|
||||
Reference in New Issue
Block a user