mirror of
https://github.com/electron/electron.git
synced 2026-01-24 14:57:58 -05:00
navigation: fix accessing url from history array for goToIndex
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user