Merge pull request #1272 from dalf/issue-1270

Theme: enable autofocus of #q only on the index page and when the width > 50em
This commit is contained in:
Paul Braeuning 2022-06-02 23:47:23 +02:00 committed by GitHub
commit 045ce76fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -86,7 +86,7 @@
qinput.addEventListener('focus', placeCursorAtEndOnce, false); qinput.addEventListener('focus', placeCursorAtEndOnce, false);
if (!isMobile) { if (!isMobile && document.querySelector('.index_endpoint')) {
qinput.focus(); qinput.focus();
} }
} }