Focus WebContents when we first load url in BrowserWindow

This commit is contained in:
Cheng Zhao 2015-07-24 13:00:03 +08:00
parent 9bb87af66b
commit 29c574cf0f
2 changed files with 10 additions and 0 deletions

View file

@ -40,6 +40,7 @@ class NavigationController
loadUrl: (url, options={}) ->
@pendingIndex = -1
@webContents._loadUrl url, options
@webContents.emit 'load-url', url, options
getUrl: ->
if @currentIndex is -1