[refactor] webapp.py: reuse get_client_settings() method to unify preference handling before render

This commit is contained in:
Bnyro 2024-12-01 13:37:43 +01:00
parent 1604a00b89
commit d4e3a5f2f2
2 changed files with 16 additions and 20 deletions

View file

@ -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"