We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2750101 commit bdbe414Copy full SHA for bdbe414
src/main/index.js
@@ -1,7 +1,7 @@
1
const { app, BrowserWindow, shell } = require("electron");
2
const path = require("path");
3
// If not on windows, disable RPC
4
-if (process.platform !== "win32") {
+if (process.platform === "win32") {
5
const DiscordRPC = require('discord-rpc');
6
}
7
let win;
@@ -177,7 +177,7 @@ app.on("window-all-closed", function () {
177
});
178
179
180
181
const clientId = '915116210570539058';
182
const rpc = new DiscordRPC.Client({ transport: 'ipc' });
183
const startTimestamp = new Date();
@@ -203,4 +203,4 @@ if (process.platform !== "win32") {
203
204
205
rpc.login({ clientId }).catch();
206
-}
+}
0 commit comments