Init
This commit is contained in:
12
resources/js/detect-ios.js
Normal file
12
resources/js/detect-ios.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export function isIOS() {
|
||||
return [
|
||||
'iPad Simulator',
|
||||
'iPhone Simulator',
|
||||
'iPod Simulator',
|
||||
'iPad',
|
||||
'iPhone',
|
||||
'iPod'
|
||||
].includes(navigator.platform)
|
||||
// iPad on iOS 13 detection
|
||||
|| (navigator.userAgent.includes("Mac") && "ontouchend" in document)
|
||||
}
|
Reference in New Issue
Block a user