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

View File

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