mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
to make the windows volume mixer not explode as it can't resize icons.
I hate Windows. Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
24a5297fc8
commit
25a0af6ddb
1 changed files with 12 additions and 3 deletions
|
@ -70,10 +70,19 @@ exports.create = function(win, config) {
|
|||
// if its not default we have to construct into nativeImage
|
||||
if (newFavicon !== config.icon_path) {
|
||||
newFavicon = nativeImage.createFromDataURL(favicons[0]);
|
||||
}
|
||||
trayIcon.setImage(newFavicon);
|
||||
|
||||
trayIcon.setImage(newFavicon);
|
||||
win.setIcon(newFavicon);
|
||||
if (process.platform === 'win32') {
|
||||
newFavicon = newFavicon.resize({
|
||||
height: 40,
|
||||
width: 40,
|
||||
});
|
||||
}
|
||||
win.setIcon(newFavicon);
|
||||
} else {
|
||||
trayIcon.setImage(newFavicon);
|
||||
win.setIcon(newFavicon);
|
||||
}
|
||||
});
|
||||
|
||||
win.webContents.on('page-title-updated', function(ev, title) {
|
||||
|
|
Loading…
Reference in a new issue