Use navigator.userAgentData in Chrome version page
navigator.userAgent will be deprecated in Chrome 101, so this CL makes
the JS code use navigator.userAgentData to keep retrieving the browser
version, while keeping the deprecated way as a fallback.
In order to simplify the logic now the page only shows the version for
Chrome, and doesn't work with other browsers.
Also, due to the complexity of parsing the Chrome iOS user agent string,
this OS isn't supported yet.
5 files changed