Skip to content

Commit e674672

Browse files
committed
add a [beta] tag to crossfade plugin
1 parent 05278ab commit e674672

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

menu.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ const mainMenuTemplate = (win) => {
5959
};
6060
}
6161

62-
return pluginEnabledMenu(plugin);
62+
let pluginLabel = plugin;
63+
if (pluginLabel === "crossfade") {
64+
pluginLabel = "crossfade [beta]";
65+
}
66+
67+
return pluginEnabledMenu(plugin, pluginLabel);
6368
}),
6469
],
6570
},

plugins/crossfade/front.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ const onApiLoaded = () => {
111111
watchVideoIDChanges(async (videoID) => {
112112
await waitForTransition;
113113
const url = await getStreamURL(videoID);
114+
if (!url) {
115+
return;
116+
}
114117
await createAudioForCrossfade(url);
115118
});
116119
};

0 commit comments

Comments
 (0)