Enhance Discord RPC Presence with direct link to Git Repository

This commit is contained in:
TC
2023-10-06 21:04:11 +02:00
parent 07853d8b39
commit 575a643e55

View File

@ -161,9 +161,10 @@ export default (
state: songInfo.artist,
largeImageKey: songInfo.imageSrc ?? '',
largeImageText: songInfo.album ?? '',
buttons: options.listenAlong ? [
{ label: 'Listen Along', url: songInfo.url ?? '' },
] : undefined,
buttons: [
...(options.listenAlong ? [{ label: 'Listen Along', url: songInfo.url ?? '' }] : []),
{ label: 'View App On GitHub', url: 'https://github.com/th-ch/youtube-music' },
],
};
if (songInfo.isPaused) {