mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-28 05:28:05 +03:00
59802f0896
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
3 lines
172 B
TypeScript
3 lines
172 B
TypeScript
export const useIsMac = () => computed(() =>
|
|
useRequestHeaders(['user-agent'])['user-agent']?.includes('Macintosh')
|
|
?? navigator?.platform?.includes('Mac') ?? false)
|