https://medium.com/@galmeiri/get-ready-for-chrome-user-agent-string-phase-out-c6840da1c31e
Works with Chrome and Chrome User-Agent regexp:
function uaify(userAgentData = navigator.userAgentData) {
return userAgentData.brands.map(
({ brand, version }) => `${brand}/${version}.0.0`
).join(' ');
}
https://medium.com/@galmeiri/get-ready-for-chrome-user-agent-string-phase-out-c6840da1c31e
Works with Chrome and Chrome User-Agent regexp: