Make getUrl work for devToolsWebContents
This commit is contained in:
parent
238d4add99
commit
e656d8428c
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,11 @@ class NavigationController
|
|||
constructor: (@webContents) ->
|
||||
@clearHistory()
|
||||
|
||||
# webContents may have already navigated to a page.
|
||||
if @webContents._getUrl()
|
||||
@currentIndex++
|
||||
@history.push @webContents._getUrl()
|
||||
|
||||
@webContents.on 'navigation-entry-commited', (event, url, inPage, replaceEntry) =>
|
||||
if @inPageIndex > -1 and not inPage
|
||||
# Navigated to a new page, clear in-page mark.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue