bowser-js / bowser

a browser detector
Other
5.44k stars 484 forks source link

Detecting Windows 11 as Windows 10 NT #509

Open umutamac opened 2 years ago

umutamac commented 2 years ago

window.navigator.userAgent of the browser is: Mozilla/5.0 (Windows NT 10.0; Win 64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/ 537.36 And it's detected like Windows NT 10.0 However, the real name of the browser is Windows 11

Here is a tutorial on how to be able to detect Windows 11: https://docs.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11