1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 06:07:06 +01:00
metamask-extension/ui/helpers/constants/common.ts
Mark Stacey b467fbc07b
Update outdated browser versions (#18721)
The range of browsers considered to be outdated has been updated to
match our latest browser support policy, which is ~2 years on Chrome,
and the most recent end-of-life extended support release on Firefox.

Comments have been added to help explain how these versions were chosen
as well.
2023-04-21 12:03:46 -02:30

32 lines
1.2 KiB
TypeScript

export const PRIMARY = 'PRIMARY';
export const SECONDARY = 'SECONDARY';
let _supportRequestLink = 'https://metamask.zendesk.com/hc/en-us';
const _contractAddressLink =
'https://metamask.zendesk.com/hc/en-us/articles/360020028092-What-is-the-known-contract-address-warning-';
///: BEGIN:ONLY_INCLUDE_IN(flask)
_supportRequestLink =
'https://metamask-flask.zendesk.com/hc/en-us/requests/new';
///: END:ONLY_INCLUDE_IN
///: BEGIN:ONLY_INCLUDE_IN(mmi)
_supportRequestLink = 'https://mmi-support.zendesk.com/hc/en-us/requests/new';
export const SUPPORT_LINK = 'https://mmi-support.zendesk.com/hc/en-us';
export const MMI_WEB_SITE = 'https://metamask.io/institutions/';
///: END:ONLY_INCLUDE_IN
export const SUPPORT_REQUEST_LINK = _supportRequestLink;
export const CONTRACT_ADDRESS_LINK = _contractAddressLink;
export const PASSWORD_MIN_LENGTH = 8;
export const OUTDATED_BROWSER_VERSIONS = {
// Chrome and Edge should match the latest Chrome version released ~2 years ago
chrome: '<90',
edge: '<90',
// Firefox should match the most recent end-of-life extended support release
firefox: '<91',
// Opera should be set to the equivalent of the Chrome version set
// See https://en.wikipedia.org/wiki/History_of_the_Opera_web_browser
opera: '<76',
};