summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/js/searxng.head.min.js
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-05-07 18:05:31 +0200
committerGitHub <noreply@github.com>2022-05-07 18:05:31 +0200
commit30756d5cfc517f63a0778a54799ab6431e062e56 (patch)
tree91c9db421b6215bbfd188aae97b846dd71e9cfe7 /searx/static/themes/simple/js/searxng.head.min.js
parent9177172ea21852e16f00896806bf1b573fd9bb8f (diff)
parent8175290867f6425226d87377512d2ce20fd72a26 (diff)
Merge pull request #1091 from return42/client-settings
[mod] client_settings: pass settings from server to JS client
Diffstat (limited to 'searx/static/themes/simple/js/searxng.head.min.js')
-rw-r--r--searx/static/themes/simple/js/searxng.head.min.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/searx/static/themes/simple/js/searxng.head.min.js b/searx/static/themes/simple/js/searxng.head.min.js
index 2885a301c..18ddcfd15 100644
--- a/searx/static/themes/simple/js/searxng.head.min.js
+++ b/searx/static/themes/simple/js/searxng.head.min.js
@@ -1,8 +1,2 @@
-/**
- * @license
- * (C) Copyright Contributors to the SearXNG project.
- * (C) Copyright Contributors to the searx project (2014 - 2021).
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */
-(function(t,e){"use strict";var a=e.currentScript||function(){var t=e.getElementsByTagName("script");return t[t.length-1]}();t.searxng={method:a.getAttribute("data-method"),autocompleter:a.getAttribute("data-autocompleter")==="true",search_on_category_select:a.getAttribute("data-search-on-category-select")==="true",infinite_scroll:a.getAttribute("data-infinite-scroll")==="true",hotkeys:a.getAttribute("data-hotkeys")==="true",static_path:a.getAttribute("data-static-path"),translations:JSON.parse(a.getAttribute("data-translations")),theme:{img_load_error:"img/img_load_error.svg"}};var r=e.getElementsByTagName("html")[0];r.classList.remove("no-js");r.classList.add("js")})(window,document);
+(function(t,e){"use strict";var s=e.currentScript||function(){var t=e.getElementsByTagName("script");return t[t.length-1]}();t.searxng={settings:JSON.parse(atob(s.getAttribute("client_settings")))};var n=e.getElementsByTagName("html")[0];n.classList.remove("no-js");n.classList.add("js")})(window,document);
//# sourceMappingURL=searxng.head.min.js.map \ No newline at end of file