Skip to content

Commit

Permalink
Merge pull request #86 from Schemetrical/patch-1
Browse files Browse the repository at this point in the history
Update for iPad Pro
  • Loading branch information
jonathanpenn committed Nov 14, 2015
2 parents 1351ecd + 4704fd0 commit a0326dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion capture.js
Expand Up @@ -24,6 +24,7 @@ var kLandscapeString = "landscape"
var kMaxDimension4inch = 568;
var kMaxDimension4point7inch = 667;
var kMaxDimension5point5inch = 736;
var kMaxDimensioniPadPro = 1366;

// rectMaxSizeMatchesPhoneWithMaxDimensionForOrientation(rect, maxDimension, orientation)
//
Expand Down Expand Up @@ -76,7 +77,11 @@ function captureLocalizedScreenshot(name) {
model = "iOS-3.5-in";
}
} else {
model = "iOS-iPad";
if (rectMaxSizeMatchesPhoneWithMaxDimensionForOrientation(rect, kMaxDimensioniPadPro, orientation)) {
model = "iOS-iPad-Pro";
} else {
model = "iOS-iPad";
}
}

var parts = [model, orientation, name];
Expand Down

0 comments on commit a0326dd

Please sign in to comment.