diff options
author | Matthew Miller <matthew@millerti.me> | 2022-06-20 11:15:27 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-06-20 11:15:27 -0700 |
commit | e08155702054b960f143b3452cfdc479831eb7ad (patch) | |
tree | 42992e25020a55f23a479158cad43d1c589175f9 /packages/browser/src | |
parent | 79099a818ae5986f8d2e1606a0801e1057836c16 (diff) |
Perform some minor cleanup
Diffstat (limited to 'packages/browser/src')
-rw-r--r-- | packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts | 2 | ||||
-rw-r--r-- | packages/browser/src/index.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts b/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts index 575d2f1..ecf557e 100644 --- a/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts +++ b/packages/browser/src/helpers/browserSupportsWebAuthnAutofill.ts @@ -17,7 +17,7 @@ export async function browserSupportsWebAuthnAutofill(): Promise<boolean> { * want. I think I'm fine with this for now since it's _supposed_ to be temporary, until TS types * have a chance to catch up. */ - const globalPublicKeyCredential = PublicKeyCredential as unknown as PublicKeyCredentialFuture; + const globalPublicKeyCredential = window.PublicKeyCredential as unknown as PublicKeyCredentialFuture; return ( globalPublicKeyCredential.isConditionalMediationAvailable diff --git a/packages/browser/src/index.ts b/packages/browser/src/index.ts index 2b327ee..e288b7c 100644 --- a/packages/browser/src/index.ts +++ b/packages/browser/src/index.ts @@ -12,6 +12,6 @@ export { startRegistration, startAuthentication, browserSupportsWebauthn, - platformAuthenticatorIsAvailable, browserSupportsWebAuthnAutofill, + platformAuthenticatorIsAvailable, }; |