diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-04-13 17:08:19 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-05-07 17:58:30 +0200 |
commit | ed2a4c80879d2d3741514ea1117ab672b8f55d54 (patch) | |
tree | 6a1cb65e74ceade9372f65e2cfb7cb9e04322d3e /searx/templates | |
parent | 9177172ea21852e16f00896806bf1b573fd9bb8f (diff) | |
download | searxng-ed2a4c80879d2d3741514ea1117ab672b8f55d54.tar.gz searxng-ed2a4c80879d2d3741514ea1117ab672b8f55d54.zip |
[mod] client_settings: pass settings from server to JS client
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/simple/base.html | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index a82c26a61..d8eaaa02b 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -19,14 +19,7 @@ {% endif %} {% block styles %}{% endblock %} <!--[if gte IE 9]>--> - <script src="{{ url_for('static', filename='js/searxng.head.min.js') }}" - data-method="{{ method or 'POST' }}" - data-autocompleter="{% if autocomplete %}true{% else %}false{% endif %}" - data-search-on-category-select="{{ 'true' if 'plugins/js/search_on_category_select.js' in scripts else 'false'}}" - data-infinite-scroll="{% if infinite_scroll %}true{% else %}false{% endif %}" - data-hotkeys="{{ 'true' if 'plugins/js/vim_hotkeys.js' in scripts else 'false' }}" - data-static-path="{{ url_for('static', filename='themes/simple') }}/" - data-translations="{{ translations }}"></script> + <script src="{{ url_for('static', filename='js/searxng.head.min.js') }}" client_settings="{{ client_settings }}"></script> <!--<![endif]--> {% block head %} <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/> |