MOBILE-2478 desktop: Fix linux icon and Windows favicon
parent
0177b60b44
commit
72f9759159
|
@ -27,7 +27,7 @@ function createWindow() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mainWindow = new BrowserWindow({
|
const options = {
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
minWidth: 400,
|
minWidth: 400,
|
||||||
|
@ -35,7 +35,13 @@ function createWindow() {
|
||||||
textAreasAreResizable: false,
|
textAreasAreResizable: false,
|
||||||
plugins: true,
|
plugins: true,
|
||||||
show: false // Don't show it until it's ready to prevent showing a blank screen.
|
show: false // Don't show it until it's ready to prevent showing a blank screen.
|
||||||
});
|
};
|
||||||
|
|
||||||
|
if (os.platform().indexOf('linux') === 0) {
|
||||||
|
options.icon = path.join(__dirname, '/../www/assets/icon/icon.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
mainWindow = new BrowserWindow(options);
|
||||||
|
|
||||||
// And load the index.html of the app.
|
// And load the index.html of the app.
|
||||||
mainWindow.loadURL(url.format({
|
mainWindow.loadURL(url.format({
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
Loading…
Reference in New Issue