1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-24 07:06:08 +09:00
elk/composables/os.ts
QiroNT 59802f0896
feat: command palette (#200)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2022-11-29 16:15:05 +08:00

4 lines
172 B
TypeScript

export const useIsMac = () => computed(() =>
useRequestHeaders(['user-agent'])['user-agent']?.includes('Macintosh')
?? navigator?.platform?.includes('Mac') ?? false)