From db8fe8832330c3f4d9792874497786846e7a5475 Mon Sep 17 00:00:00 2001 From: Josiah <139285660+Jojobinx17@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:07:19 -0700 Subject: [PATCH] automatically focus the url input field on page load --- src/front/cobalt.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 0c89dec2..5e8e4fb7 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -666,6 +666,10 @@ window.onload = () => { } window.history.replaceState(null, '', window.location.pathname); + if (!isMobile) { + eid("url-input-area").focus(); + } + // fix for animations not working in Safari if (isIOS) { document.addEventListener('touchstart', () => {}, true);