summaryrefslogtreecommitdiff
path: root/searx/static/default/js
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/default/js')
-rw-r--r--searx/static/default/js/searx.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/static/default/js/searx.js b/searx/static/default/js/searx.js
index c87dc30d4..9be969bb3 100644
--- a/searx/static/default/js/searx.js
+++ b/searx/static/default/js/searx.js
@@ -41,5 +41,9 @@ if(searx.autocompleter) {
}
});
+ if (!!('ontouchstart' in window)) {
+ document.getElementsByTagName("html")[0].className += " touch";
+ }
+
})(window, document);