forked from vikunja/frontend
feat: also detect ipads in is macos
This commit is contained in:
parent
cd380601c9
commit
3ce3a3af65
|
@ -1,3 +1,10 @@
|
||||||
export const isMac = (): Boolean => {
|
export const isMac = (): Boolean => {
|
||||||
return navigator.userAgent.includes('Mac')
|
return navigator.userAgent.includes('Mac') || [
|
||||||
|
'iPad Simulator',
|
||||||
|
'iPhone Simulator',
|
||||||
|
'iPod Simulator',
|
||||||
|
'iPad',
|
||||||
|
'iPhone',
|
||||||
|
'iPod',
|
||||||
|
].includes(navigator.platform)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user