From a64fc0e45ffaa4ab75f8eb8392c286e0d7cee65e Mon Sep 17 00:00:00 2001 From: Sam Yamashita <1587053+sotayamashita@users.noreply.github.com> Date: Wed, 29 Jan 2020 03:39:54 +0900 Subject: [PATCH] chore: fix missing device definitions (#708) Fixes #606 --- src/deviceDescriptors.ts | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/deviceDescriptors.ts b/src/deviceDescriptors.ts index 63efe2a899..8c8ea43d4e 100644 --- a/src/deviceDescriptors.ts +++ b/src/deviceDescriptors.ts @@ -408,6 +408,16 @@ const descriptors: types.DeviceDescriptor[] = [ 'isMobile': true } }, + { + 'name': 'iPhone 11 landscape', + 'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1', + 'viewport': { + 'width': 896, + 'height': 414, + 'deviceScaleFactor': 2, + 'isMobile': true + } + }, { 'name': 'iPhone 11 Pro', 'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1', @@ -418,6 +428,16 @@ const descriptors: types.DeviceDescriptor[] = [ 'isMobile': true } }, + { + 'name': 'iPhone 11 Pro landscape', + 'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1', + 'viewport': { + 'width': 812, + 'height': 375, + 'deviceScaleFactor': 3, + 'isMobile': true + } + }, { 'name': 'iPhone 11 Pro Max', 'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1', @@ -428,6 +448,16 @@ const descriptors: types.DeviceDescriptor[] = [ 'isMobile': true } }, + { + 'name': 'iPhone 11 Pro Max landscape', + 'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1', + 'viewport': { + 'width': 896, + 'height': 414, + 'deviceScaleFactor': 3, + 'isMobile': true + } + }, { 'name': 'JioPhone 2', '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', @@ -498,6 +528,16 @@ const descriptors: types.DeviceDescriptor[] = [ 'isMobile': true } }, + { + 'name': 'Microsoft Lumia 550 landscape', + 'userAgent': 'Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/14.14263', + 'viewport': { + 'width': 360, + 'height': 640, + 'deviceScaleFactor': 2, + 'isMobile': true + } + }, { 'name': 'Microsoft Lumia 950', 'userAgent': 'Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/14.14263',