From ab6abd2b629533ed2ddb025a9c3873852f166dc2 Mon Sep 17 00:00:00 2001 From: cryptofyre Date: Thu, 15 Sep 2022 12:43:43 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/main/plugins/discordrpc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/plugins/discordrpc.ts b/src/main/plugins/discordrpc.ts index 185bbcd5..b4a9c535 100644 --- a/src/main/plugins/discordrpc.ts +++ b/src/main/plugins/discordrpc.ts @@ -238,8 +238,8 @@ export default class DiscordRPC { 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}] : [] - ]; //To change attributes.url => preload/cider-preload.js + ...(showSongLink ? [{ label: "Song.link", url: "https://song.link/i/" + attributes.songId }] : []), + ]; //To change attributes.url => preload/cider-preload.js } // Add the timestamp if its playing and people want them