summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/src/js/01_init.js
diff options
context:
space:
mode:
authorPaul Braeuning <paul@paulgo.io>2022-05-03 18:47:35 +0200
committerGitHub <noreply@github.com>2022-05-03 18:47:35 +0200
commit31521f3a465fa2beb7e3fd7ed47621262a28f554 (patch)
treea9a896b08d98b0ddcaf65b2159c34326c77bf80b /searx/static/themes/oscar/src/js/01_init.js
parent8a79eb4d7b0265afc200ecf6c1d729274a065b18 (diff)
parentc3bb6c7059388308aa9843943ce2491856ef1596 (diff)
Merge pull request #1153 from return42/drop-oscar
[theme] peel out oscar from SearXNG development
Diffstat (limited to 'searx/static/themes/oscar/src/js/01_init.js')
-rw-r--r--searx/static/themes/oscar/src/js/01_init.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/searx/static/themes/oscar/src/js/01_init.js b/searx/static/themes/oscar/src/js/01_init.js
deleted file mode 100644
index f72b0078b..000000000
--- a/searx/static/themes/oscar/src/js/01_init.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * @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
- */
-
-window.searxng = (function(d) {
- 'use strict';
-
- //
- d.getElementsByTagName("html")[0].className = "js";
-
- // add data- properties
- var script = d.currentScript || (function() {
- var scripts = d.getElementsByTagName('script');
- return scripts[scripts.length - 1];
- })();
-
- return {
- autocompleter: script.getAttribute('data-autocompleter') === 'true',
- infinite_scroll: script.getAttribute('data-infinite-scroll') === 'true',
- method: script.getAttribute('data-method'),
- translations: JSON.parse(script.getAttribute('data-translations'))
- };
-})(document);