1
0
mirror of https://github.com/jiahaog/Nativefier synced 2024-06-26 07:38:59 +02:00

Make Browserwindow always reference app/icon.png for the icon

This commit is contained in:
Jia Hao 2016-01-26 14:13:33 +08:00
parent f45098d543
commit d0cddfde43

View File

@ -39,8 +39,8 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
nodeIntegration: false,
preload: path.join(__dirname, 'static', 'preload.js')
},
// hardcoded by default until you decide how to pass in an icon
icon: options.icon || path.join(__dirname, '/icon.png')
// after webpack path here should reference `resources/app/`
icon: path.join(__dirname, '../', '/icon.png')
}
);