Fix icon?

master
Rohan Vazarkar 2016-08-06 11:09:45 -07:00
parent 1ffd2af721
commit 634674e561
1 changed files with 3 additions and 6 deletions

View File

@ -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`)