Skip to content

Commit ede91f0

Browse files
islishudeJosh-Cena
andauthored
web/api/web_authentication_api: add missing closing tag (mdn#38013)
* web/api/web_authentication_api: add missing closing tag * Update index.md * Update files/en-us/web/api/web_authentication_api/index.md * Update index.md --------- Co-authored-by: Joshua Chen <[email protected]>
1 parent 262c13d commit ede91f0

File tree

1 file changed

+4
-3
lines changed
  • files/en-us/web/api/web_authentication_api

1 file changed

+4
-3
lines changed

files/en-us/web/api/web_authentication_api/index.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ The code below shows how you might use `getClientCapabilities()` to check if the
170170
Note that the actual actions performed depend on your site.
171171
For sites that _require_ biometric authentication, you might replace the login UI with a message indicating that biometric authentication is needed, and the user should try a different browser or device.
172172

173-
````js
174-
async function checkisUserVerifyingPlatformAuthenticatorAvailable() {
173+
```js
174+
async function checkIsUserVerifyingPlatformAuthenticatorAvailable() {
175175
const capabilities = await PublicKeyCredential.getClientCapabilities();
176176
// Check the capability: userVerifyingPlatformAuthenticator
177177
if (capabilities.userVerifyingPlatformAuthenticator) {
@@ -180,6 +180,7 @@ async function checkisUserVerifyingPlatformAuthenticatorAvailable() {
180180
// Perform actions if biometric support is not available.
181181
}
182182
}
183+
```
183184

184185
## Controlling access to the API
185186

@@ -203,7 +204,7 @@ If you wish to allow access to a specific subdomain only, you could provide it l
203204
```http
204205
Permissions-Policy: publickey-credentials-get=("https://subdomain.example.com")
205206
Permissions-Policy: publickey-credentials-create=("https://subdomain.example.com")
206-
````
207+
```
207208

208209
### Allowing embedded `create` and `get()` calls in an `<iframe>`
209210

0 commit comments

Comments
 (0)