mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Change ML search engine to duckduckgo
This commit is contained in:
parent
097c85e44d
commit
a19cd79283
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ pub unsafe extern "C" fn navigate_servo(servo: *mut ServoInstance, text: *const
|
|||
.to_str()
|
||||
.expect("Failed to convert text to UTF-8");
|
||||
let url = ServoUrl::parse(text).unwrap_or_else(|_| {
|
||||
let mut search = ServoUrl::parse("http://google.com/search")
|
||||
let mut search = ServoUrl::parse("https://duckduckgo.com")
|
||||
.expect("Failed to parse search URL")
|
||||
.into_url();
|
||||
search.query_pairs_mut().append_pair("q", text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue