From 4eb82e43e7c20cf4a7cb0a3b441209e64f69d44b Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Tue, 5 Sep 2017 12:42:00 -0300 Subject: [PATCH] Fixes #910 --- electron/tray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/tray.js b/electron/tray.js index c122e652..d19e2646 100644 --- a/electron/tray.js +++ b/electron/tray.js @@ -40,7 +40,7 @@ exports.create = function(win, config) { }; exports.destroy = function() { - appIcon.destroy(); + if (appIcon) appIcon.destroy(); appIcon = null; };