Skip to content

Commit

Permalink
update rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
wont-stream committed Sep 27, 2024
1 parent 33d8bbe commit 1808474
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/DiscordRPC/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export function update(data) {
formatString(track.artists?.map((a) => a.name).join(", ")) ??
"Unknown Artist";

// Metadata
activity.smallImageText = `${getComputedStyle(document.body).getPropertyValue("--track-vibrant-color")}|${track.id}`

return setRPC(activity);
}

Expand Down

0 comments on commit 1808474

Please sign in to comment.