Skip to content

Commit 3d0dae1

Browse files
Update index.js
1 parent 73d8203 commit 3d0dae1

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
@@ -2,8 +2,8 @@ const { app, BrowserWindow, shell } = require("electron");
22
const path = require("path");
33
// If not on windows, disable RPC
44
let DiscordRPC;
5-
if (process.platform === "win32") {
6-
const DiscordRPC = require('discord-rpc');
5+
if (process.platform == "win32") {
6+
DiscordRPC = require('discord-rpc');
77
}
88
let win;
99
let pluginName;
@@ -178,7 +178,7 @@ app.on("window-all-closed", function () {
178178
});
179179

180180

181-
if (process.platform === "win32") {
181+
if (process.platform == "win32") {
182182
const clientId = '915116210570539058';
183183
const rpc = new DiscordRPC.Client({ transport: 'ipc' });
184184
const startTimestamp = new Date();

0 commit comments

Comments
 (0)