Skip to content

Commit

Permalink
update gethighentropyvalues client hints options
Browse files Browse the repository at this point in the history
As we are going to deprecate the existing client hint Sec-CH-UA-Full-Version, using Sec-CH-UA-Full-Version-List instead. For details please check WICG/ua-client-hints#196. Update the documents to match the spec: https://wicg.github.io/ua-client-hints/#interface
  • Loading branch information
Tanych committed Mar 4, 2022
1 parent f7710a7 commit 5982f1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ NavigatorUAData.getHighEntropyValues(hints);
- `"bitness"`
- `"model"`
- `"platformVersion"`
- `"uaFullVersion"`
- `"uaFullVersion"` {{deprecated_inline}}
- `"fullVersionList"`

### Return value

Expand All @@ -45,8 +46,10 @@ An object containing some or all of the following values, based on the hints req
- : A {{domxref("DOMString","string")}} containing the device model. For example, `"Pixel 2XL"`.
- `platformVersion`
- : A {{domxref("DOMString","string")}} containing the platform version. For example, `"10.0"`.
- `uaFullVersion`
- `uaFullVersion` {{deprecated_inline}}
- : A {{domxref("DOMString","string")}} containing the full browser version. For example, `"91.0.4472.124"`.
- `fullVersionList`
- : An array of brand information containing the browser name and full version. For example, `"Chromium";v="91.0.4472.124","Google Chrome";v="91.0.4472.124"`.

### Exceptions

Expand All @@ -62,7 +65,7 @@ navigator.userAgentData.getHighEntropyValues(
["architecture",
"model",
"platformVersion",
"uaFullVersion"])
"fullVersionList"])
.then(ua => { console.log(ua) });
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/navigatoruadata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ navigator.userAgentData.getHighEntropyValues(
"model",
"platform",
"platformVersion",
"uaFullVersion"])
"fullVersionList"])
.then(ua => { console.log(ua) });
```

Expand Down

0 comments on commit 5982f1f

Please sign in to comment.