]> khamidou — GitHub mirrors - electron.git/commitdiff
Make default_app focus the main window on startup.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 9 Sep 2014 10:33:36 +0000 (18:33 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 9 Sep 2014 10:33:36 +0000 (18:33 +0800)
atom/browser/default_app/default_app.js

index 0e1b64d29015f5b97b49b9fbf0f4a01f13e1d966..844c887d1d9fb8ec095b4b726c0584a93d58bb28 100644 (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 = [