Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "ti.detect", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple Titanium library to detect things", | ||
@@ -5,0 +5,0 @@ "main": "ti.detect.js", |
@@ -6,6 +6,6 @@ var hasNotch = false; | ||
if ( | ||
// iPhone X/Xs | ||
// iPhone X/Xs/XR | ||
Ti.Platform.displayCaps.platformWidth === 375 && | ||
Ti.Platform.displayCaps.platformHeight === 812 && | ||
Ti.Platform.displayCaps.logicalDensityFactor === 3) { | ||
(Ti.Platform.displayCaps.logicalDensityFactor === 3 || Ti.Platform.displayCaps.logicalDensityFactor === 2)) { | ||
return true; | ||
@@ -15,3 +15,3 @@ } | ||
if ( | ||
// iPhone XR/XR max | ||
// iPhone XR/XS max | ||
Ti.Platform.displayCaps.platformWidth === 414 && | ||
@@ -18,0 +18,0 @@ Ti.Platform.displayCaps.platformHeight === 896 && |
3735