fix: https for DDG, provide range for UserProvider
This commit is contained in:
parent
22a2593bf2
commit
ed305bd547
2 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ export default class DuckDuckGoProvider extends AutocompleteProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
static getQueryUri(query: String) {
|
static getQueryUri(query: String) {
|
||||||
return `http://api.duckduckgo.com/?q=${encodeURIComponent(query)}`
|
return `https://api.duckduckgo.com/?q=${encodeURIComponent(query)}`
|
||||||
+ `&format=json&no_redirect=1&no_html=1&t=${encodeURIComponent(REFERRER)}`;
|
+ `&format=json&no_redirect=1&no_html=1&t=${encodeURIComponent(REFERRER)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ export default class UserProvider extends AutocompleteProvider {
|
||||||
title={user.displayName || user.userId}
|
title={user.displayName || user.userId}
|
||||||
description={user.userId} />
|
description={user.userId} />
|
||||||
),
|
),
|
||||||
|
range
|
||||||
};
|
};
|
||||||
}).slice(0, 4);
|
}).slice(0, 4);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue