Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS 11.4 is detected as MacOS 11.0 #222

Open
AlexanderLohmeyer opened this issue Jul 7, 2021 · 0 comments
Open

MacOS 11.4 is detected as MacOS 11.0 #222

AlexanderLohmeyer opened this issue Jul 7, 2021 · 0 comments

Comments

@AlexanderLohmeyer
Copy link

AlexanderLohmeyer commented Jul 7, 2021

Hi,
i am using ngx-device-detector in angular 11/electron 11 environment. I am currently on the latest macOS 11.4 version

stringified Output of getDeviceInfo():

{
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_4_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Electron/11.4.7 Safari/537.36",
  "os": "Mac",
  "browser": "Chrome",
  "device": "Macintosh",
  "os_version": "mac-os-x-11-0",
  "browser_version": "87.0.4280.141",
  "deviceType": "desktop",
  "orientation": "landscape"
}

Although the user-agent outputs the right version 11.4, the os_version is shown as mac-os-x-11-0.
The expected output were either mac-os-11-4 or mac-os-11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant