From 129c7275a7cfa330ab22ce9547f9a966a008a9e9 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Sun, 20 Jan 2019 07:52:31 +0500 Subject: [PATCH] Oops. --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 0c5241a..dc1a377 100644 --- a/main.js +++ b/main.js @@ -44,7 +44,7 @@ function createWindow() { mainWindow.setIcon(normalIcon); // Tray icon. Do not create it on macOS. - if (app.platform != "darwin") { + if (process.platform != "darwin") { tray = new Tray(normalIcon); const contextMenu = Menu.buildFromTemplate([ { label: 'Open Yandex.Mail window', type: 'normal', click: showHideMainWindow }, @@ -87,7 +87,7 @@ app.on('activate', function () { ipc.on("has-unread", function (event, count) { mainWindow.setIcon(unreadIcon); - if (app.platform == "darwin") { + if (process.platform == "darwin") { app.setBadgeCount(count); } else { tray.setImage(unreadIcon); @@ -96,7 +96,7 @@ ipc.on("has-unread", function (event, count) { ipc.on("has-no-unread", function (event, count) { mainWindow.setIcon(normalIcon); - if (app.platform == "darwin") { + if (process.platform == "darwin") { app.setBadgeCount(count); } else { tray.setImage(unreadIcon);