diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-02-28 23:08:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-28 23:08:52 +0100 |
| commit | cddc623786d576d5256052ac02f5f29ee4a84639 (patch) | |
| tree | 32a495a929654f39080647f45523a6dc1f2179ff /searx/static/themes/simple/src/js | |
| parent | afde954df8fedc0c9d21d1cc75407ecafed020ab (diff) | |
| parent | 2e1d4fac5d0a3a969aa44b62598771d3d87513d6 (diff) | |
Merge pull request #929 from dalf/simple-fix-nojs-categories
[fix] simple: categories: use media query detect touch screen
Diffstat (limited to 'searx/static/themes/simple/src/js')
| -rw-r--r-- | searx/static/themes/simple/src/js/head/00_init.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/searx/static/themes/simple/src/js/head/00_init.js b/searx/static/themes/simple/src/js/head/00_init.js index 073371ce6..acd437f39 100644 --- a/searx/static/themes/simple/src/js/head/00_init.js +++ b/searx/static/themes/simple/src/js/head/00_init.js @@ -4,7 +4,6 @@ * (C) Copyright Contributors to the searx project (2014 - 2021). * SPDX-License-Identifier: AGPL-3.0-or-later */ -/* global DocumentTouch:readonly */ (function (w, d) { 'use strict'; @@ -16,7 +15,6 @@ // try to detect touch screen w.searxng = { - touch: (("ontouchstart" in w) || w.DocumentTouch && document instanceof DocumentTouch) || false, method: script.getAttribute('data-method'), autocompleter: script.getAttribute('data-autocompleter') === 'true', search_on_category_select: script.getAttribute('data-search-on-category-select') === 'true', @@ -34,7 +32,4 @@ 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 |