Skip to content

Commit

Permalink
fix(deps): update dependency @xhayper/discord-rpc to v1.2.0 (#2291)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency @xhayper/discord-rpc to v1.2.0

* fix: discord-rpc

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: JellyBrick <[email protected]>
  • Loading branch information
renovate[bot] and JellyBrick authored Jul 31, 2024
1 parent 23e688a commit 8924ec2
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 64 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"@xhayper/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]"
}
},
Expand All @@ -165,7 +164,7 @@
"@jellybrick/electron-better-web-request": "1.0.4",
"@jellybrick/mpris-service": "2.1.4",
"@skyra/jaro-winkler": "^1.1.1",
"@xhayper/discord-rpc": "1.1.4",
"@xhayper/discord-rpc": "1.2.0",
"async-mutex": "0.5.0",
"butterchurn": "3.0.0-beta.4",
"butterchurn-presets": "3.0.0-beta.4",
Expand Down
17 changes: 0 additions & 17 deletions patches/@[email protected]

This file was deleted.

114 changes: 73 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/plugins/discord/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ export const backend = createBackend<

info.rpc.user?.setActivity(activityInfo).catch(console.error);
},
async start({ window: win, getConfig }) {
this.config = await getConfig();
async start(ctx) {
this.config = await ctx.getConfig();

info.rpc.on('connected', () => {
if (dev()) {
Expand Down Expand Up @@ -239,10 +239,10 @@ export const backend = createBackend<

info.autoReconnect = this.config.autoReconnect;

window = win;
window = ctx.window;

// If the page is ready, register the callback
win.once('ready-to-show', () => {
ctx.window.once('ready-to-show', () => {
let lastSongInfo: SongInfo;
registerCallback((songInfo) => {
lastSongInfo = songInfo;
Expand Down

0 comments on commit 8924ec2

Please sign in to comment.