Skip to content

Commit

Permalink
[@mantine/hooks] use-os: Fix iOS being reported as MacOS in several c…
Browse files Browse the repository at this point in the history
…ases (#6511)
  • Loading branch information
Kenzo-Wada committed Jul 12, 2024
1 parent c1a9717 commit 1bdb948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@mantine/hooks/src/use-os/use-os.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ function getOS(): OS {

const { userAgent } = window.navigator;

if (isMacOS(userAgent)) {
return 'macos';
}
if (isIOS(userAgent)) {
return 'ios';
}
if (isMacOS(userAgent)) {
return 'macos';
}
if (isWindows(userAgent)) {
return 'windows';
}
Expand Down

0 comments on commit 1bdb948

Please sign in to comment.