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 #5084 from brave/show-bookmark-history-url-suggestion
Browse files Browse the repository at this point in the history
Show bookmarks in history auto-complete
  • Loading branch information
bbondy authored Oct 24, 2016
2 parents e286569 + c871c54 commit ce20fe5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/components/urlBarSuggestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,11 @@ class UrlBarSuggestions extends ImmutableComponent {
const title = site.get('title') || ''
const location = site.get('location') || ''
return (title.toLowerCase().includes(urlLocationLower) ||
location.toLowerCase().includes(urlLocationLower)) &&
(!site.get('tags') || site.get('tags').size === 0)
location.toLowerCase().includes(urlLocationLower))
// Note: Bookmkark sites are now included in history. This will allow
// sites to appear in the auto-complete regardless of their bookmark
// status. If history is turned off, bookmarked sites will appear
// in the bookmark section.
}
}))
}
Expand Down

0 comments on commit ce20fe5

Please sign in to comment.