We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fa4afb commit c6e46a7Copy full SHA for c6e46a7
src/utils/platform.ts
@@ -14,8 +14,10 @@ export const isMac = () => {
14
}
15
16
17
+ const pattern = /Mac|iPhone|iPad|iPod/u;
18
+
19
// Fallback to userAgent string parsing
- return (/Mac|iPhone|iPad|iPod/u).test(navigator.userAgent);
20
+ return pattern.test(navigator.userAgent);
21
};
22
23
/**
0 commit comments