diff --git a/idevice.js b/idevice.js index baa6729..10c1536 100644 --- a/idevice.js +++ b/idevice.js @@ -120,6 +120,12 @@ var iDevice = (function() { if (s == '375x812' || s == '414x896') { return 'iPhone XR' } + if (s == '834x1112') { + return 'iPad Air (2019)' + } + if (s == '768x1024') { + return 'iPad mini (2019)' + } } if (dpr == 3) { if (s == '375x812') { diff --git a/tests.js b/tests.js index c960000..cd51f29 100644 --- a/tests.js +++ b/tests.js @@ -74,6 +74,8 @@ test('iPad Pro 10.5" (2017)', 'Apple A10X GPU', 834, 1112, 2) test('iPad (2018)', 'Apple A10 GPU', 768, 1024, 2) test('iPad Pro 11" (2018)', 'Apple A12X GPU', 834, 1194, 2) test('iPad Pro 12.9" (2018)', 'Apple A12X GPU', 1024, 1366, 2) +test('iPad Air (2019)', 'Apple A12 GPU', 834, 1112, 2) +test('iPad mini (2019)', 'Apple A12 GPU', 768, 1024, 2) test('iPod Touch 5', 'PowerVR SGX 543', 320, 568, 2, 'Mozilla/5.0 (iPod touch; ...') test('iPod Touch 6', 'Apple A8 GPU', 320, 568, 2, 'Mozilla/5.0 (iPod touch; ...')