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

[EC-598] fix: remove platform attachment check

This commit is contained in:
Andreas Coroiu
2023-04-14 13:16:41 +02:00
parent a3176ad704
commit 260dc839b4

View File

@@ -14,9 +14,11 @@ navigator.credentials.create = async (
options?: CredentialCreationOptions, options?: CredentialCreationOptions,
abortController?: AbortController abortController?: AbortController
): Promise<Credential> => { ): Promise<Credential> => {
if (options.publicKey?.authenticatorSelection?.authenticatorAttachment === "platform") { // if (options.publicKey?.authenticatorSelection?.authenticatorAttachment === "platform") {
return await browserCredentials.create(options); // return await browserCredentials.create(options);
} // }
console.log(options.publicKey);
try { try {
const response = await messenger.request( const response = await messenger.request(