Focus WebContents when we first load url in BrowserWindow
This commit is contained in:
parent
9bb87af66b
commit
29c574cf0f
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue