focus unlock input when window is focused

This commit is contained in:
Joseph Montanaro 2024-09-18 09:29:14 -04:00
parent 3b61aa924a
commit 295698e62f

View File

@ -19,7 +19,7 @@
let alert;
let passphrase = '';
let saving = false;
async function unlock() {
saving = true;
@ -40,6 +40,8 @@
</script>
<svelte:window on:focus={input.focus} />
<div class="fixed top-0 w-full p-2 text-center">
<h1 class="text-3xl font-bold">Creddy is locked</h1>
</div>