summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-07-01 08:23:31 -0700
committerMatthew Miller <matthew@millerti.me>2022-07-01 08:23:31 -0700
commita0f1a031160584d576fdc7fe16108fa6e3305247 (patch)
tree86e47bf77ff5bb4abcaa059b6cc16331ee271d5f /packages/browser/src
parente74272c45134e4c20c001e488e5566ae9cf36c4f (diff)
Properly type isConditionalMediationAvailable
Diffstat (limited to 'packages/browser/src')
-rw-r--r--packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts b/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts
index bda999b..ffca77d 100644
--- a/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts
+++ b/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts
@@ -22,7 +22,7 @@ export async function browserSupportsWebAuthnAutofill(): Promise<boolean> {
window.PublicKeyCredential as unknown as PublicKeyCredentialFuture;
return (
- globalPublicKeyCredential.isConditionalMediationAvailable &&
+ globalPublicKeyCredential.isConditionalMediationAvailable !== undefined &&
globalPublicKeyCredential.isConditionalMediationAvailable()
);
}