Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
BadgeGen should only run on Windows
  • Loading branch information
amanharwara committed Sep 12, 2020
1 parent f5c8979 commit b5b46b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,9 @@ if (!singleInstanceLock) {
ipcMain.on("settings-changed", () => setGlobalSettings());

// Message Indicator
const trayBadge = new BadgeGen(mainWindow);
let trayBadge;

if (process.platform === "win32") trayBadge = new BadgeGen(mainWindow);

ipcMain.on("message-indicator", (e, messageCount) => {
if (
Expand Down

0 comments on commit b5b46b0

Please sign in to comment.