mirror of https://github.com/vector-im/riot-web
Merge pull request #2708 from vector-im/dbkr/png_icon_on_linux
Use a PNG for the icon on non-Windowspull/2727/head
commit
65a31cc8a9
|
@ -156,8 +156,12 @@ electron.app.on('ready', () => {
|
||||||
console.log("No update_base_url is defined: auto update is disabled");
|
console.log("No update_base_url is defined: auto update is disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const icon_path = `${__dirname}/../img/riot.` + (
|
||||||
|
process.platform == 'win32' ? 'ico' : 'png'
|
||||||
|
);
|
||||||
|
|
||||||
mainWindow = new electron.BrowserWindow({
|
mainWindow = new electron.BrowserWindow({
|
||||||
icon: `${__dirname}/../img/riot.ico`,
|
icon: icon_path,
|
||||||
width: 1024, height: 768,
|
width: 1024, height: 768,
|
||||||
show: false,
|
show: false,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue