Fix icon?
parent
1ffd2af721
commit
634674e561
9
main.js
9
main.js
|
@ -12,16 +12,13 @@ let mainWindow
|
|||
|
||||
function createWindow () {
|
||||
// Create the browser window.
|
||||
mainWindow = new BrowserWindow({width: 1280, height: 800, icon: __dirname + '/src/img/icon.ico'})
|
||||
var trayIcon;
|
||||
|
||||
if (platform == 'darwin'){
|
||||
trayIcon = __dirname + '/src/img/icon.png'
|
||||
mainWindow = new BrowserWindow({width: 1280, height: 800, icon: __dirname + '/src/img/icon.png'})
|
||||
}else{
|
||||
trayIcon = __dirname + '/src/img/icon.ico'
|
||||
mainWindow = new BrowserWindow({width: 1280, height: 800, icon: __dirname + '/src/img/icon.ico'})
|
||||
}
|
||||
|
||||
appIcon = new Tray(trayIcon)
|
||||
//appIcon = new Tray(trayIcon)
|
||||
// and load the index.html of the app.
|
||||
mainWindow.loadURL(`file://${__dirname}/index.html`)
|
||||
|
||||
|
|
Loading…
Reference in New Issue