mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat: add iPhone 11 models to DeviceDescriptors (#6467)
This commit is contained in:
parent
a732e7ac8f
commit
50b810dab7
@ -548,6 +548,84 @@ const devices: Device[] = [
|
||||
isLandscape: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'iPhone 11',
|
||||
userAgent:
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1',
|
||||
viewport: {
|
||||
width: 414,
|
||||
height: 828,
|
||||
deviceScaleFactor: 2,
|
||||
isMobile: true,
|
||||
hasTouch: true,
|
||||
isLandscape: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'iPhone 11 landscape',
|
||||
userAgent:
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1',
|
||||
viewport: {
|
||||
width: 828,
|
||||
height: 414,
|
||||
deviceScaleFactor: 2,
|
||||
isMobile: true,
|
||||
hasTouch: true,
|
||||
isLandscape: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'iPhone 11 Pro',
|
||||
userAgent:
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1',
|
||||
viewport: {
|
||||
width: 375,
|
||||
height: 812,
|
||||
deviceScaleFactor: 3,
|
||||
isMobile: true,
|
||||
hasTouch: true,
|
||||
isLandscape: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'iPhone 11 Pro landscape',
|
||||
userAgent:
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1',
|
||||
viewport: {
|
||||
width: 812,
|
||||
height: 375,
|
||||
deviceScaleFactor: 3,
|
||||
isMobile: true,
|
||||
hasTouch: true,
|
||||
isLandscape: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'iPhone 11 Pro Max',
|
||||
userAgent:
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1',
|
||||
viewport: {
|
||||
width: 414,
|
||||
height: 896,
|
||||
deviceScaleFactor: 3,
|
||||
isMobile: true,
|
||||
hasTouch: true,
|
||||
isLandscape: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'iPhone 11 Pro Max landscape',
|
||||
userAgent:
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1',
|
||||
viewport: {
|
||||
width: 896,
|
||||
height: 414,
|
||||
deviceScaleFactor: 3,
|
||||
isMobile: true,
|
||||
hasTouch: true,
|
||||
isLandscape: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'JioPhone 2',
|
||||
userAgent:
|
||||
|
Loading…
Reference in New Issue
Block a user