From 5d5a32858de7f0fca605f3ccbe6d8081a561acf2 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 4 Apr 2016 00:32:18 -0700 Subject: [PATCH] fix: OS X has no tray icon --- main/tray.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/tray.js b/main/tray.js index da44de6e..bd308316 100644 --- a/main/tray.js +++ b/main/tray.js @@ -9,10 +9,12 @@ var windows = require('./windows') var trayIcon function init () { - // No tray icon on OSX if (process.platform === 'darwin') { // Instead of relying on the tray icon quit button, listen for Cmd+Q electron.app.once('before-quit', quitApp) + + // OS X has no tray icon + return } trayIcon = new electron.Tray(path.join(__dirname, '..', 'static', 'WebTorrentSmall.png'))