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; };