1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 21:50:15 +00:00

And now it works without extra delay

This commit is contained in:
Anders Åberg
2025-01-24 12:17:20 +01:00
parent 4af3950009
commit 176a6b10c7
2 changed files with 3 additions and 4 deletions

View File

@@ -1 +0,0 @@
npx lint-staged

View File

@@ -147,9 +147,9 @@ export class DesktopFido2UserInterfaceSession implements Fido2UserInterfaceSessi
// wait for 10ms to help RXJS catch up(?)
// We sometimes get a race condition from this.createCredential not updating cipherService in time
console.log("waiting 10ms..");
await new Promise((resolve) => setTimeout(resolve, 10));
console.log("Just waited 10ms");
//console.log("waiting 10ms..");
//await new Promise((resolve) => setTimeout(resolve, 10));
//console.log("Just waited 10ms");
// Return the new cipher (this.createdCipher)
return { cipherId: this.createdCipher.id, userVerified: userVerification };
} finally {