feat: rename IPC

This commit is contained in:
JellyBrick
2024-01-06 10:17:40 +09:00
parent 5d5cc58f59
commit 6b7c43925a
26 changed files with 88 additions and 73 deletions

View File

@ -101,7 +101,7 @@ export const onMainLoad = async ({
config ??= await getConfig();
setConfig({ isInPiP });
on('picture-in-picture', () => {
on('plugin:toggle-picture-in-picture', () => {
togglePiP();
});

View File

@ -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)