From 49d6422ebd173d90d642ba4717de77e0439291c6 Mon Sep 17 00:00:00 2001 From: Faisal Salman Date: Wed, 22 Mar 2023 10:53:15 +0700 Subject: [PATCH] Mistype in iPad detection --- src/ua-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ua-parser.js b/src/ua-parser.js index 02f10b2..08ea128 100755 --- a/src/ua-parser.js +++ b/src/ua-parser.js @@ -994,7 +994,7 @@ this.set(TYPE, MOBILE); } // 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') .set(TYPE, TABLET); }