mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-19 07:07:59 -04:00
Autofill form directly after creating new credential (#622)
This commit is contained in:
@@ -338,8 +338,11 @@ export function createAutofillPopup(input: HTMLInputElement, credentials: Creden
|
||||
};
|
||||
|
||||
chrome.runtime.sendMessage({ type: 'CREATE_IDENTITY', credential }, () => {
|
||||
// Refresh the popup to show new identity.
|
||||
openAutofillPopup(input);
|
||||
// Close popup.
|
||||
removeExistingPopup();
|
||||
|
||||
// Fill the form with the new identity immediately.
|
||||
fillCredential(credential, input);
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Error creating identity:', error);
|
||||
|
||||
Reference in New Issue
Block a user