Adds ability to change search provider
This commit is contained in:
@@ -534,12 +534,7 @@ extension BrowserViewController: UITextFieldDelegate
|
||||
|
||||
tab.beginLoadingURL(url)
|
||||
} else {
|
||||
// Assume google search
|
||||
let queryString = text
|
||||
.replacingOccurrences(of: " ", with: "+")
|
||||
.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!
|
||||
|
||||
let searchURL = URL(string: "https://google.com/search?q=\(queryString)&gbv=1")! // gbv=1: no JS
|
||||
let searchURL = Settings.shared.searchProvider.provider().searchURLWithQuery(text)
|
||||
tab.beginLoadingURL(searchURL)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user