1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

add early exit to native messaging flow for errors

This commit is contained in:
Jacob Fink
2023-06-14 15:15:15 -04:00
parent 61ba9692bc
commit 2dbe03ba11

View File

@@ -359,6 +359,12 @@ export class NativeMessagingBackground {
cancelButtonText: null,
type: "danger",
});
// Exit early
if (this.resolver) {
this.resolver(message);
}
return;
}
// Verify key is correct by attempting to decrypt a secret