arch
arch copied to clipboard
High-accuracy detection in the browser
const {bitness} = await navigator.userAgentData.getHighEntropyValues(['bitness']);
See:
- https://wicg.github.io/ua-client-hints/#user-agent-platform-bitness
- https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/getHighEntropyValues#return_value