diff --git a/app/tray_icon.js b/app/tray_icon.js index 2f7801d7bb..77ca7b1d3a 100644 --- a/app/tray_icon.js +++ b/app/tray_icon.js @@ -95,7 +95,14 @@ function createTrayIcon(getMainWindow, messages) { console.log('tray.updateIcon: Image for tray update does not exist!'); return; } - tray.setImage(image); + try { + tray.setImage(image); + } catch (error) { + console.log( + 'tray.setImage error:', + error && error.stack ? error.stack : error + ); + } }; tray.on('click', tray.showWindow);