mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Make default_app focus the main window on startup.
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user