Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #9853 from brave/longpress-backbutton
Browse files Browse the repository at this point in the history
allow website access with long press on backbutton
  • Loading branch information
cezaraugusto authored Jul 6, 2017
2 parents bea3646 + 11dc16b commit ac8de13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/browser/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,8 @@ const api = {

goToIndex: (tabId, index) => {
const tab = getWebContents(tabId)
if (tab && !tab.isDestroyed() && tab.canGoToIndex(index)) {
const validIndex = index >= 0 && index < tab.getEntryCount()
if (tab && !tab.isDestroyed() && validIndex) {
tab.goToIndex(index)
}
},
Expand Down

0 comments on commit ac8de13

Please sign in to comment.