From eb1826bc4972d527bed2a0f5f4e351df330114cd Mon Sep 17 00:00:00 2001 From: Yaniv Efraim Date: Sat, 28 Apr 2018 00:45:03 +0300 Subject: [PATCH] feat(DeviceDescriptors): add pixel2/pixel2 xl (#2464) fixes #2448 --- DeviceDescriptors.js | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/DeviceDescriptors.js b/DeviceDescriptors.js index 8a27d43aabd..d1eee25454b 100644 --- a/DeviceDescriptors.js +++ b/DeviceDescriptors.js @@ -650,6 +650,54 @@ module.exports = [ 'hasTouch': true, 'isLandscape': true } + }, + { + 'name': 'Pixel 2', + 'userAgent': 'Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Mobile Safari/537.36', + 'viewport': { + 'width': 411, + 'height': 731, + 'deviceScaleFactor': 2.625, + 'isMobile': true, + 'hasTouch': true, + 'isLandscape': false + } + }, + { + 'name': 'Pixel 2 landscape', + 'userAgent': 'Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Mobile Safari/537.36', + 'viewport': { + 'width': 731, + 'height': 411, + 'deviceScaleFactor': 2.625, + 'isMobile': true, + 'hasTouch': true, + 'isLandscape': true + } + }, + { + 'name': 'Pixel 2 XL', + 'userAgent': 'Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Mobile Safari/537.36', + 'viewport': { + 'width': 411, + 'height': 823, + 'deviceScaleFactor': 3.5, + 'isMobile': true, + 'hasTouch': true, + 'isLandscape': false + } + }, + { + 'name': 'Pixel 2 XL landscape', + 'userAgent': 'Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Mobile Safari/537.36', + 'viewport': { + 'width': 823, + 'height': 411, + 'deviceScaleFactor': 3.5, + 'isMobile': true, + 'hasTouch': true, + 'isLandscape': true + } } ]; for (const device of module.exports)