cal.pub0.org/packages/lib/isMac.ts

2 lines
103 B
TypeScript

export const isMac = typeof window !== "undefined" ? navigator.userAgent.indexOf("Mac") != -1 : false;