mirror of
https://github.com/Mail-0/Zero.git
synced 2026-07-01 08:16:28 +00:00
6 lines
222 B
TypeScript
6 lines
222 B
TypeScript
export const isMac =
|
|
typeof window !== 'undefined' &&
|
|
typeof navigator !== 'undefined' &&
|
|
(/macintosh|mac os x/i.test(navigator.userAgent) ||
|
|
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1));
|