mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-07 04:39:10 +01:00
4 lines
172 B
TypeScript
4 lines
172 B
TypeScript
|
export const useIsMac = () => computed(() =>
|
||
|
useRequestHeaders(['user-agent'])['user-agent']?.includes('Macintosh')
|
||
|
?? navigator?.platform?.includes('Mac') ?? false)
|