Merge pull request #1713 from deepak1556/navigation_patch

navigation: fix accessing url from history array for goToIndex
This commit is contained in:
Cheng Zhao 2015-05-21 10:43:34 +08:00
commit 427b9567ca

View file

@ -90,7 +90,7 @@ class NavigationController
goToIndex: (index) ->
return unless @canGoToIndex index
@pendingIndex = index
@webContents._loadUrl @history[@pendingIndex].url, {}
@webContents._loadUrl @history[@pendingIndex], {}
goToOffset: (offset) ->
return unless @canGoToOffset offset