1 parent 6aae97b commit 808240eCopy full SHA for 808240e
1 file changed
electron_app/src/tray.js
@@ -61,10 +61,7 @@ exports.create = function (win, config) {
61
trayIcon.on('click', toggleWin);
62
63
win.webContents.on('page-favicon-updated', function(ev, favicons) {
64
- try {
65
- const img = nativeImage.createFromDataURL(favicons[0]);
66
- trayIcon.setImage(img);
67
- } catch (e) {console.error(e);}
+ trayIcon.setImage(nativeImage.createFromDataURL(favicons[0]));
68
});
69
70
win.webContents.on('page-title-updated', function(ev, title) {
0 commit comments