-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const COOKIE_ID_MARKETING_WHITELIST = [ | ||
'https://metamask.io', | ||
'https://learn.metamask.io', | ||
'https://mmi-support.zendesk.com', | ||
'https://community.metamask.io', | ||
'https://support.metamask.io', | ||
]; | ||
|
||
if (process.env.IN_TEST) { | ||
COOKIE_ID_MARKETING_WHITELIST.push('http://127.0.0.1:8080'); | ||
} | ||
|
||
// Extract the origin of each URL in the whitelist | ||
export const COOKIE_ID_MARKETING_WHITELIST_ORIGINS = | ||
COOKIE_ID_MARKETING_WHITELIST.map((url) => new URL(url).origin); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// contexts | ||
export const CONTENT_SCRIPT = 'metamask-contentscript'; | ||
export const METAMASK_INPAGE = 'metamask-inpage'; | ||
|
||
// stream channels | ||
export const METAMASK_PROVIDER = 'metamask-provider'; | ||
export const METAMASK_COOKIE_HANDLER = 'metamask-cookie-handler'; | ||
export const PHISHING_SAFELIST = 'metamask-phishing-safelist'; | ||
export const PHISHING_STREAM = 'phishing'; | ||
|
||
// For more information about these legacy streams, see here: | ||
// https://github.com/MetaMask/metamask-extension/issues/15491 | ||
// TODO:LegacyProvider: Delete | ||
export const LEGACY_CONTENT_SCRIPT = 'contentscript'; | ||
export const LEGACY_INPAGE = 'inpage'; | ||
export const LEGACY_PROVIDER = 'provider'; | ||
export const LEGACY_PUBLIC_CONFIG = 'publicConfig'; |