From b7dbe36b46d250977cc406e66609fffe0a37eacd Mon Sep 17 00:00:00 2001 From: Malte Bublitz Date: Sun, 2 Oct 2022 22:20:07 +0200 Subject: [PATCH] =?utf8?q?new-tab:=20Timeout=20f=C3=BCr=20Fokus?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/new-tab.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/new-tab.js b/js/new-tab.js index d33d765..efe1ffe 100644 --- a/js/new-tab.js +++ b/js/new-tab.js @@ -23,6 +23,9 @@ window.onload = function() { * Set focus to search */ document.querySelector("input[type=search]").focus(); + setTimeout(() => { + document.querySelector("input[type=search]").focus(); + }, 100); /** * Redirect if an URL was entered in the search form @@ -34,4 +37,4 @@ window.onload = function() { event.preventDefault(); } }); -}; \ No newline at end of file +}; -- 2.30.2