cal/packages/lib/isMac.ts
Syed Ali Shahbaz 318ec316d5
Adds a fully extensible command(ctrl)+k interface for Cal (#3346)
* init

* action function added

* kbar trigger placed

* UI improvements to KBar, added command + K tooltip

* renamed quick find to commandbar

* replaced window router with nextjs router

* keyboard up n down nav shows up

Co-authored-by: Peer Richelsen <peer@cal.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-07-14 06:45:07 +00:00

2 lines
103 B
TypeScript

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