SIGN IN SIGN UP

refactor: resolve browser via env variables based on build rather than user agent (#27179)

Fixes https://github.com/facebook/react/issues/26911,
https://github.com/facebook/react/issues/26860.

Currently, we are parsing user agent string to determine which browser
is running the extension. This doesn't work well with custom user
agents, and sometimes when user turns on mobile dev mode in Firefox, we
stop resolving that this is a Firefox browser, extension starts to use
Chrome API's and fails to inject.

Changes:
Since we are building different extensions for all supported browsers
(Chrome, Firefox, Edge), we predefine env variables for browser
resolution, which are populated in a build step.
R
Ruslan Lesiutin committed
2c4c84718810bf3df411d599acc152d08208d35f
Parent: 456d153
Committed by GitHub <noreply@github.com> on 8/29/2023, 9:40:02 AM