add a [beta] tag to crossfade plugin

This commit is contained in:
Araxeus
2023-04-01 16:35:31 +03:00
parent 05278ab643
commit e6746722c5
2 changed files with 9 additions and 1 deletions

View File

@ -59,7 +59,12 @@ const mainMenuTemplate = (win) => {
};
}
return pluginEnabledMenu(plugin);
let pluginLabel = plugin;
if (pluginLabel === "crossfade") {
pluginLabel = "crossfade [beta]";
}
return pluginEnabledMenu(plugin, pluginLabel);
}),
],
},

View File

@ -111,6 +111,9 @@ const onApiLoaded = () => {
watchVideoIDChanges(async (videoID) => {
await waitForTransition;
const url = await getStreamURL(videoID);
if (!url) {
return;
}
await createAudioForCrossfade(url);
});
};