diff options
author | Bnyro <bnyro@tutanota.com> | 2024-12-01 13:37:43 +0100 |
---|---|---|
committer | Bnyro <bnyro@tutanota.com> | 2024-12-16 11:39:38 +0100 |
commit | d4e3a5f2f20b8aa38997ac760dbdbbd2e14c4db6 (patch) | |
tree | 36c15cb354fa3d9a7fd4eac4d8e5f3ab18383c18 /searx/static | |
parent | 1604a00b89ff67ad0078b69f65ea61bd75b0e3a1 (diff) | |
download | searxng-d4e3a5f2f20b8aa38997ac760dbdbbd2e14c4db6.tar.gz searxng-d4e3a5f2f20b8aa38997ac760dbdbbd2e14c4db6.zip |
[refactor] webapp.py: reuse get_client_settings() method to unify preference handling before render
Diffstat (limited to 'searx/static')
-rw-r--r-- | searx/static/themes/simple/src/js/main/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/static/themes/simple/src/js/main/search.js b/searx/static/themes/simple/src/js/main/search.js index 68f77c86a..1a53713c0 100644 --- a/searx/static/themes/simple/src/js/main/search.js +++ b/searx/static/themes/simple/src/js/main/search.js @@ -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" |