From e435806505d58f3ad77223dcafee2f99ca427e00 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sun, 27 Feb 2022 11:27:25 +0100 Subject: [fix] simple: detect touch screen using media query related to https://github.com/searxng/searxng/issues/928 --- searx/static/themes/simple/src/js/head/00_init.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'searx/static/themes/simple/src/js') 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 -- cgit v1.2.3