1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Cleanup, localize error.

This commit is contained in:
Hinton
2020-10-21 17:18:04 +02:00
parent 9064298309
commit 0a4d59092b
6 changed files with 52 additions and 45 deletions

View File

@@ -151,7 +151,7 @@ export default class MainBackground {
},
() => {
if (this.nativeMessagingBackground != null) {
const promise = this.nativeMessagingBackground.await();
const promise = this.nativeMessagingBackground.getResponse();
this.nativeMessagingBackground.send({command: 'biometricUnlock'})
return promise.then((result) => result.response === 'unlocked');
}