diff --git a/searx/static/themes/simple/src/js/main/search.js b/searx/static/themes/simple/src/js/main/search.js index 20e58e0fe..b96cf499d 100644 --- a/searx/static/themes/simple/src/js/main/search.js +++ b/searx/static/themes/simple/src/js/main/search.js @@ -86,7 +86,7 @@ qinput.addEventListener('focus', placeCursorAtEndOnce, false); - if (!isMobile) { + if (!isMobile && document.querySelector('.index_endpoint')) { qinput.focus(); } }