Make default_app focus the main window on startup.

This commit is contained in:
Cheng Zhao 2014-09-09 18:33:36 +08:00
parent 9c9a306095
commit db8de9e60d

View file

@ -21,6 +21,7 @@ app.on('ready', function() {
'use-content-size': true,
});
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.focus();
if (process.platform == 'darwin') {
var template = [