From cf9d161d265ac23cdb1317b8dc878de4235819d3 Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Fri, 19 Nov 2021 16:56:07 +0100 Subject: [build] /static --- searx/static/themes/simple/js/searxng.head.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'searx/static/themes/simple/js/searxng.head.js') diff --git a/searx/static/themes/simple/js/searxng.head.js b/searx/static/themes/simple/js/searxng.head.js index d359a9174..21b1754bf 100644 --- a/searx/static/themes/simple/js/searxng.head.js +++ b/searx/static/themes/simple/js/searxng.head.js @@ -27,5 +27,10 @@ }; // update the css - d.getElementsByTagName("html")[0].className = (w.searxng.touch)?"js touch":"js"; + var hmtlElement = d.getElementsByTagName("html")[0]; + hmtlElement.classList.remove('no-js'); + hmtlElement.classList.add('js'); + if (w.searxng.touch) { + hmtlElement.classList.add('touch'); + } })(window, document); \ No newline at end of file -- cgit v1.2.3