mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Mistype in iPad detection
This commit is contained in:
parent
a1d816ae21
commit
49d6422ebd
@ -994,7 +994,7 @@
|
|||||||
this.set(TYPE, MOBILE);
|
this.set(TYPE, MOBILE);
|
||||||
}
|
}
|
||||||
// iPadOS-specific detection: identified as Mac, but has some iOS-only properties
|
// iPadOS-specific detection: identified as Mac, but has some iOS-only properties
|
||||||
if (this.get(NAME) == 'Macintosh' && NAVIGATOR && typeof NAVIGATOR.standalone !== UNDEF_TYPE && NAVIGATOR.maxTouchPoints && NAVIGATOR.maxTouchPoints > 2) {
|
if (this.get(MODEL) == 'Macintosh' && NAVIGATOR && typeof NAVIGATOR.standalone !== UNDEF_TYPE && NAVIGATOR.maxTouchPoints && NAVIGATOR.maxTouchPoints > 2) {
|
||||||
this.set(MODEL, 'iPad')
|
this.set(MODEL, 'iPad')
|
||||||
.set(TYPE, TABLET);
|
.set(TYPE, TABLET);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user