From cbbf3e7ee69f563d3107af6ce9197171b53f964b Mon Sep 17 00:00:00 2001 From: Atakan Goktepe Date: Thu, 26 Oct 2017 21:36:17 +0300 Subject: Removed mainWindow parameter from Tray class --- src/lib/Tray.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/lib') diff --git a/src/lib/Tray.js b/src/lib/Tray.js index 2101d1503..525ce592e 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js @@ -6,13 +6,8 @@ const INDICATOR_TRAY_PLAIN = 'tray'; const INDICATOR_TRAY_UNREAD = 'tray-unread'; export default class TrayIcon { - mainWindow = null; trayIcon = null; - constructor(mainWindow) { - this.mainWindow = mainWindow; - } - show() { if (this.trayIcon) return; @@ -35,7 +30,7 @@ export default class TrayIcon { this.trayIcon.setContextMenu(trayMenu); this.trayIcon.on('click', () => { - this.mainWindow.show(); + app.mainWindow.show(); }); } -- cgit v1.2.3-70-g09d2