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

@ -115,13 +115,13 @@ export const onRendererLoad = async ({
}: RendererContext<SkipSilencesPluginConfig>) => {
config = await getConfig();
document.addEventListener('audioCanPlay', audioCanPlayListener, {
document.addEventListener('ytmd:audio-can-play', audioCanPlayListener, {
passive: true,
});
};
export const onRendererUnload = () => {
document.removeEventListener('audioCanPlay', audioCanPlayListener);
document.removeEventListener('ytmd:audio-can-play', audioCanPlayListener);
if (playOrSeekHandler) {
const video = document.querySelector('video');