Skip to content

Commit

Permalink
Update DeviceDescriptors to include 6.5 inch iPhone XR (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Sep 17, 2019
1 parent 7ba0abc commit 668f2c5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lib/PuppeteerSharp/Mobile/DeviceDescriptors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,34 @@ public static class DeviceDescriptors
IsLandscape = true
}
},
[DeviceDescriptorName.IPhoneX] = new DeviceDescriptor
{
Name = "iPhone XR",
UserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1",
ViewPort = new ViewPortOptions
{
Width = 414,
Height = 896,
DeviceScaleFactor = 3,
IsMobile = true,
HasTouch = true,
IsLandscape = false
}
},
[DeviceDescriptorName.IPhoneXLandscape] = new DeviceDescriptor
{
Name = "iPhone XR landscape",
UserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1",
ViewPort = new ViewPortOptions
{
Width = 896,
Height = 414,
DeviceScaleFactor = 3,
IsMobile = true,
HasTouch = true,
IsLandscape = true
}
},
[DeviceDescriptorName.JioPhone2] = new DeviceDescriptor
{
Name = "JioPhone 2",
Expand Down

0 comments on commit 668f2c5

Please sign in to comment.