From 507d001550f3eae067b88ec52474b9208e351c32 Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Tue, 10 Oct 2023 07:54:15 +0100 Subject: [PATCH] Update files/en-us/web/api/publickeycredential/parsecreationoptionsfromjson_static/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../parsecreationoptionsfromjson_static/index.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/en-us/web/api/publickeycredential/parsecreationoptionsfromjson_static/index.md b/files/en-us/web/api/publickeycredential/parsecreationoptionsfromjson_static/index.md index 2f2e1344cbab992..f2ae273512a0a3c 100644 --- a/files/en-us/web/api/publickeycredential/parsecreationoptionsfromjson_static/index.md +++ b/files/en-us/web/api/publickeycredential/parsecreationoptionsfromjson_static/index.md @@ -78,9 +78,10 @@ Below we will name this "reconstituted" object `createCredentialOptionsJSON` (th We use `parseCreationOptionsFromJSON()` to convert this to the correct form to use in `navigator.credentials.create()`: ```js -const createCredentialOptions = PublicKeyCredential.parseCreationOptionsFromJSON( - receivedCreateCredentialOptions, -); +const createCredentialOptions = + PublicKeyCredential.parseCreationOptionsFromJSON( + receivedCreateCredentialOptions, + ); navigator.credentials .create({ createCredentialOptions })