summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/js/main/searx_preferences.js
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/themes/simple/src/js/main/searx_preferences.js')
-rw-r--r--searx/static/themes/simple/src/js/main/searx_preferences.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/searx/static/themes/simple/src/js/main/searx_preferences.js b/searx/static/themes/simple/src/js/main/searx_preferences.js
index 136d9f03e..b19026a43 100644
--- a/searx/static/themes/simple/src/js/main/searx_preferences.js
+++ b/searx/static/themes/simple/src/js/main/searx_preferences.js
@@ -1,16 +1,17 @@
-(function (w, d, searx) {
+/* SPDX-License-Identifier: AGPL-3.0-or-later */
+(function (w, d, searxng) {
'use strict';
- searx.ready(function() {
+ searxng.ready(function() {
let engine_descriptions = null;
function load_engine_descriptions() {
if (engine_descriptions == null) {
- searx.http("GET", "engine_descriptions.json").then(function(content) {
+ searxng.http("GET", "engine_descriptions.json").then(function(content) {
engine_descriptions = JSON.parse(content);
for (const [engine_name, description] of Object.entries(engine_descriptions)) {
let elements = d.querySelectorAll('[data-engine-name="' + engine_name + '"] .engine-description');
for(const element of elements) {
- let source = ' (<i>' + searx.translations['Source'] + ':&nbsp;' + description[1] + '</i>)';
+ let source = ' (<i>' + searxng.translations['Source'] + ':&nbsp;' + description[1] + '</i>)';
element.innerHTML = description[0] + source;
}
}
@@ -20,8 +21,8 @@
if (d.querySelector('body[class="preferences_endpoint"]')) {
for(const el of d.querySelectorAll('[data-engine-name]')) {
- searx.on(el, 'mouseenter', load_engine_descriptions);
+ searxng.on(el, 'mouseenter', load_engine_descriptions);
}
}
});
-})(window, document, window.searx);
+})(window, document, window.searxng);