Skip to content

Commit

Permalink
Add new devices for mobile emulation (#2556)
Browse files Browse the repository at this point in the history
Signed-off-by: hdzogovic <h.dzogovic@icloud.com>

Co-authored-by: hdzogovic <h.dzogovic@icloud.com>
  • Loading branch information
Haris and hdzogovic committed Mar 16, 2022
1 parent ac8e13e commit 4649856
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions lib/data/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,54 @@ let DEVICES = {
isLandscape: true,
},
},
'iPhone 11': {
userAgent:
'Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1',
viewport: {
width: 414,
height: 896,
deviceScaleFactor: 2,
isMobile: true,
hasTouch: true,
isLandscape: false,
},
},
'iPhone 11 landscape': {
userAgent:
'Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1',
viewport: {
width: 896,
height: 414,
deviceScaleFactor: 2,
isMobile: true,
hasTouch: true,
isLandscape: true,
},
},
'iPhone 11 Pro': {
userAgent:
'Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1',
viewport: {
width: 375,
height: 812,
deviceScaleFactor: 3,
isMobile: true,
hasTouch: true,
isLandscape: false,
},
},
'iPhone 11 Pro landscape': {
userAgent:
'Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1',
viewport: {
width: 812,
height: 375,
deviceScaleFactor: 3,
isMobile: true,
hasTouch: true,
isLandscape: true,
},
},
'Kindle Fire HDX': {
userAgent:
'Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true',
Expand Down

0 comments on commit 4649856

Please sign in to comment.