Merge pull request #1713 from deepak1556/navigation_patch
navigation: fix accessing url from history array for goToIndex
This commit is contained in:
commit
427b9567ca
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class NavigationController
|
||||||
goToIndex: (index) ->
|
goToIndex: (index) ->
|
||||||
return unless @canGoToIndex index
|
return unless @canGoToIndex index
|
||||||
@pendingIndex = index
|
@pendingIndex = index
|
||||||
@webContents._loadUrl @history[@pendingIndex].url, {}
|
@webContents._loadUrl @history[@pendingIndex], {}
|
||||||
|
|
||||||
goToOffset: (offset) ->
|
goToOffset: (offset) ->
|
||||||
return unless @canGoToOffset offset
|
return unless @canGoToOffset offset
|
||||||
|
|
Loading…
Reference in a new issue