mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
54e9c53b27
* Add web3 shim usage alert background state and logic * Cleanup alert background state, constants * Implement web3 shim usage notification and settings * nodeify alert controller background hooks * Remove svg icon, again * Tweak alert controller initialization * Add support article URL * Un-thunk alert UI "actions" * Delete connect.svg file (unused)
19 lines
406 B
JavaScript
19 lines
406 B
JavaScript
export const ALERT_TYPES = {
|
|
unconnectedAccount: 'unconnectedAccount',
|
|
web3ShimUsage: 'web3ShimUsage',
|
|
invalidCustomNetwork: 'invalidCustomNetwork',
|
|
}
|
|
|
|
/**
|
|
* Alerts that can be enabled or disabled by the user.
|
|
*/
|
|
export const TOGGLEABLE_ALERT_TYPES = [
|
|
ALERT_TYPES.unconnectedAccount,
|
|
ALERT_TYPES.web3ShimUsage,
|
|
]
|
|
|
|
export const WEB3_SHIM_USAGE_ALERT_STATES = {
|
|
RECORDED: 1,
|
|
DISMISSED: 2,
|
|
}
|