mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-30 01:43:36 +08:00
When choosing Surface Pro 7 in emulator, the user-agent that being used is for iPad Mini: "Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1" While the correct user-agent for Surface Pro 7 is actually: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36" This leads to confusion about device that is being emulated. https://github.com/faisalman/ua-parser-js/issues/614 Bug: chromium:1409771 Change-Id: I486cfe4d44e0ffccb2d77d61364ce50f323d50a1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4197029 Commit-Queue: Mathias Bynens <mathias@chromium.org> Reviewed-by: Mathias Bynens <mathias@chromium.org>