Skip to content

Commit bdbe414

Browse files
Update index.js
1 parent 2750101 commit bdbe414

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { app, BrowserWindow, shell } = require("electron");
22
const path = require("path");
33
// If not on windows, disable RPC
4-
if (process.platform !== "win32") {
4+
if (process.platform === "win32") {
55
const DiscordRPC = require('discord-rpc');
66
}
77
let win;
@@ -177,7 +177,7 @@ app.on("window-all-closed", function () {
177177
});
178178

179179

180-
if (process.platform !== "win32") {
180+
if (process.platform === "win32") {
181181
const clientId = '915116210570539058';
182182
const rpc = new DiscordRPC.Client({ transport: 'ipc' });
183183
const startTimestamp = new Date();
@@ -203,4 +203,4 @@ if (process.platform !== "win32") {
203203
});
204204

205205
rpc.login({ clientId }).catch();
206-
}
206+
}

0 commit comments

Comments
 (0)