automatically focus the url input field on page load

This commit is contained in:
Josiah 2024-06-06 14:07:19 -07:00 committed by GitHub
parent 85bed9aa74
commit db8fe88323
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);