mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
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);
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user