Skip to content

Commit cad8e4f

Browse files
authored
Merge pull request #1096 from Araxeus/crossfade-beta-psa
[crossfade] add `[beta]` tag to warn of possible bugs
2 parents 4b9af14 + e674672 commit cad8e4f

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
@@ -110,6 +110,9 @@ const onApiLoaded = () => {
110110
watchVideoIDChanges(async (videoID) => {
111111
await waitForTransition;
112112
const url = await getStreamURL(videoID);
113+
if (!url) {
114+
return;
115+
}
113116
await createAudioForCrossfade(url);
114117
});
115118
};

0 commit comments

Comments
 (0)