forked from Icycoide/searxng
[refactor] webapp.py: reuse get_client_settings() method to unify preference handling before render
This commit is contained in:
parent
1604a00b89
commit
d4e3a5f2f2
2 changed files with 16 additions and 20 deletions
|
@ -43,11 +43,11 @@
|
|||
createClearButton(qinput);
|
||||
|
||||
// autocompleter
|
||||
if (searxng.settings.autocomplete_provider) {
|
||||
if (searxng.settings.autocomplete) {
|
||||
searxng.autocomplete = AutoComplete.call(w, {
|
||||
Url: "./autocompleter",
|
||||
EmptyMessage: searxng.settings.translations.no_item_found,
|
||||
HttpMethod: searxng.settings.http_method,
|
||||
HttpMethod: searxng.settings.method,
|
||||
HttpHeaders: {
|
||||
"Content-type": "application/x-www-form-urlencoded",
|
||||
"X-Requested-With": "XMLHttpRequest"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue