Make default_app focus the main window on startup.
This commit is contained in:
parent
9c9a306095
commit
db8de9e60d
1 changed files with 1 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue