fix icon on non-Mac

This commit is contained in:
Damillora 2017-07-07 14:57:43 +07:00
parent 73608d17e1
commit 2dba9271a9

View File

@ -13,7 +13,7 @@ const options = {userAgent: 'Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6
function createWindow () { function createWindow () {
// Create the browser window. // Create the browser window.
win = new BrowserWindow({width: 480, height: 600,icon: path.join(__dirname, 'ic_launcher.png')}) win = new BrowserWindow({width: 480, height: 600,icon: path.join(__dirname, 'icon.png')})
setdock.setdock(win) setdock.setdock(win)
if(process.platform == 'darwin') { Menu.setApplicationMenu(themenu(win)); } if(process.platform == 'darwin') { Menu.setApplicationMenu(themenu(win)); }
else { win.setMenu(themenu(win)); else { win.setMenu(themenu(win));