shouldn't need this try-catch

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-05-13 12:40:17 +01:00
parent 6aae97b812
commit 808240eef9
1 changed files with 1 additions and 4 deletions

View File

@ -61,10 +61,7 @@ exports.create = function (win, config) {
trayIcon.on('click', toggleWin); trayIcon.on('click', toggleWin);
win.webContents.on('page-favicon-updated', function(ev, favicons) { win.webContents.on('page-favicon-updated', function(ev, favicons) {
try { trayIcon.setImage(nativeImage.createFromDataURL(favicons[0]));
const img = nativeImage.createFromDataURL(favicons[0]);
trayIcon.setImage(img);
} catch (e) {console.error(e);}
}); });
win.webContents.on('page-title-updated', function(ev, title) { win.webContents.on('page-title-updated', function(ev, title) {