diff options
| author | mrpaulblack <paul@paulgo.io> | 2021-11-19 16:56:07 +0100 |
|---|---|---|
| committer | mrpaulblack <paul@paulgo.io> | 2021-11-19 16:56:07 +0100 |
| commit | cf9d161d265ac23cdb1317b8dc878de4235819d3 (patch) | |
| tree | 3af8727e55d8f735796351e25298ec70be2eb78c /searx/static/themes/simple/js/searxng.head.js | |
| parent | ec5a82fccd658790708b230516fa6ce93f9c7612 (diff) | |
[build] /static
Diffstat (limited to 'searx/static/themes/simple/js/searxng.head.js')
| -rw-r--r-- | searx/static/themes/simple/js/searxng.head.js | 7 |
1 files changed, 6 insertions, 1 deletions
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 |