fix: https for DDG, provide range for UserProvider

This commit is contained in:
Aviral Dasgupta 2016-07-05 01:37:01 +05:30
parent 22a2593bf2
commit ed305bd547
2 changed files with 2 additions and 1 deletions

View file

@ -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)}`;
} }

View file

@ -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);
} }