diff options
Diffstat (limited to 'client/simple/src/js/head/00_init.js')
| -rw-r--r-- | client/simple/src/js/head/00_init.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/client/simple/src/js/head/00_init.js b/client/simple/src/js/head/00_init.js deleted file mode 100644 index 7aec676a4..000000000 --- a/client/simple/src/js/head/00_init.js +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: AGPL-3.0-or-later */ -((w, d) => { - // add data- properties - const getLastScriptElement = () => { - const scripts = d.getElementsByTagName("script"); - return scripts[scripts.length - 1]; - }; - - const script = d.currentScript || getLastScriptElement(); - - w.searxng = { - settings: JSON.parse(atob(script.getAttribute("client_settings"))) - }; - - // update the css - const htmlElement = d.getElementsByTagName("html")[0]; - htmlElement.classList.remove("no-js"); - htmlElement.classList.add("js"); -})(window, document); |