Skip to content

Commit f47ed16

Browse files
mittermayraslushnikov
authored andcommitted
feat: update DeviceDescriptors to include 6.5 inch iPhone XR and similar (#4846)
1 parent 0e0a679 commit f47ed16

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

lib/DeviceDescriptors.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,30 @@ module.exports = [
471471
'isLandscape': true
472472
}
473473
},
474+
{
475+
'name': 'iPhone XR',
476+
'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1',
477+
'viewport': {
478+
'width': 414,
479+
'height': 896,
480+
'deviceScaleFactor': 3,
481+
'isMobile': true,
482+
'hasTouch': true,
483+
'isLandscape': false
484+
}
485+
},
486+
{
487+
'name': 'iPhone XR landscape',
488+
'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1',
489+
'viewport': {
490+
'width': 896,
491+
'height': 414,
492+
'deviceScaleFactor': 3,
493+
'isMobile': true,
494+
'hasTouch': true,
495+
'isLandscape': true
496+
}
497+
},
474498
{
475499
'name': 'JioPhone 2',
476500
'userAgent': 'Mozilla/5.0 (Mobile; LYF/F300B/LYF-F300B-001-01-15-130718-i;Android; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.5',

0 commit comments

Comments
 (0)