mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
Make getUrl work for devToolsWebContents
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user