summaryrefslogtreecommitdiff
path: root/searx/static
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-12-01 13:37:43 +0100
committerBnyro <bnyro@tutanota.com>2024-12-16 11:39:38 +0100
commitd4e3a5f2f20b8aa38997ac760dbdbbd2e14c4db6 (patch)
tree36c15cb354fa3d9a7fd4eac4d8e5f3ab18383c18 /searx/static
parent1604a00b89ff67ad0078b69f65ea61bd75b0e3a1 (diff)
downloadsearxng-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.js4
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"