Skip to content

Apple M1 silicone coherence problem #163

Answered by abrahamjuliot
Daniel3356 asked this question in Q&A
Discussion options

You must be logged in to vote

The userAgentData section gets the real platform, version, and architecture (macOS 12.0.1 arm), and the device section gets metrics that no longer provide updated platform info.

For example, log this to the console

let {
  platform: uaPlatform,
  architecture,
  platformVersion
} = await navigator.userAgentData.getHighEntropyValues(['architecture', 'platform', 'platformVersion'])
let { userAgent, platform } = navigator

console.log('userAgentData:', uaPlatform, platformVersion, architecture)
console.log('navigator: ', /\(([^\)]+)/g.exec(userAgent)[1], platform)

The device section gets metrics from navigator.userAgent and navigator.platform. Starting in Chrome 101, those metrics will be re…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by abrahamjuliot
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #162 on December 25, 2021 05:51.