Apple M1 silicone coherence problem #163
-
I have an Apple M1, Creepjs detect my mac as ARM with is true, but indicate as an Intel CPU. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The userAgentData section gets the real 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 https://www.chromium.org/updates/ua-reduction
gl = new OffscreenCanvas(0,0).getContext('webgl')
ext = gl.getExtension('WEBGL_debug_renderer_info')
renderer = gl.getParameter(ext.UNMASKED_RENDERER_WEBGL)
console.log(renderer) |
Beta Was this translation helpful? Give feedback.
-
closing for now, but feel free to discuss |
Beta Was this translation helpful? Give feedback.
The userAgentData section gets the real
platform
,version
, andarchitecture
(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
The device section gets metrics from
navigator.userAgent
andnavigator.platform
. Starting in Chrome 101, those metrics will be re…