diff --git a/src/index.html b/src/index.html index fd3e039..42e5f25 100644 --- a/src/index.html +++ b/src/index.html @@ -102,7 +102,7 @@ diff --git a/src/settings.ts b/src/settings.ts index 589e092..05edefe 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -174,17 +174,14 @@ privateTgl.addEventListener('click', () => { privateKeyInput.type = privateKeyInput.type === 'text' ? 'password' : 'text'; }); -privateKeyInput.value = localStorage.getItem('private_key') || ''; -pubKeyInput.value = localStorage.getItem('pub_key') || ''; +privateKeyInput.value = localStorage.getItem('private_key') || ''; +pubKeyInput.value = localStorage.getItem('pub_key') || ''; // profile const profileForm = document.querySelector('form[name="profile"]') as HTMLFormElement; const profileSubmit = profileForm.querySelector('button[type="submit"]') as HTMLButtonElement; const profileStatus = document.querySelector('#profilestatus') as HTMLElement; -// const onProfileError = err => { -// profileStatus.hidden = false; -// profileStatus.textContent = err.message -// }; + profileForm.addEventListener('input', (e) => { if (e.target instanceof HTMLElement) { if (e.target?.nodeName === 'TEXTAREA') {