fix discord rpc (#1437)

This commit is contained in:
UnbreakCode 2022-09-15 15:17:39 +02:00 committed by GitHub
parent ab6abd2b62
commit 672b52991a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -237,8 +237,7 @@ export default class DiscordRPC {
if (!this._utils.getStoreValue("connectivity.discord_rpc.hide_buttons")) {
activity.buttons = [
{ label: "Listen on Cider", url: attributes.url.cider },
{ label: "View on Apple Music", url: attributes.url.appleMusic },
...(showSongLink ? [{ label: "Song.link", url: "https://song.link/i/" + attributes.songId }] : []),
... showSongLink ? [{ label: "View on other platforms", url: 'https://song.link/i/' + attributes.songId }] : [{ label: "View on Apple Music", url: attributes.url.appleMusic }]
]; //To change attributes.url => preload/cider-preload.js
}