shouldn't need this try-catch
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
6aae97b812
commit
808240eef9
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue