1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Allow dismissing the privacy mode notification

The privacy mode notification was not able to be dismissed from the
popup UI. It should have been dismissed after clicking "Learn more",
but that button opens a new tab first before dismissing the flag.
Opening the new tab kills the pop UI process before it has a chance
to set that flag, so it never gets set.

Re-ordering the handler to set the flag first avoids this problem.
This commit is contained in:
Mark Stacey 2019-09-01 19:59:12 -03:00
parent daa20b4b63
commit bbbf68c8df

View File

@ -99,8 +99,8 @@ export default class Home extends PureComponent {
descriptionText={t('privacyModeDefault')} descriptionText={t('privacyModeDefault')}
acceptText={t('learnMore')} acceptText={t('learnMore')}
onAccept={() => { onAccept={() => {
window.open('https://medium.com/metamask/42549d4870fa', '_blank', 'noopener')
unsetMigratedPrivacyMode() unsetMigratedPrivacyMode()
window.open('https://medium.com/metamask/42549d4870fa', '_blank', 'noopener')
}} }}
key="home-privacyModeDefault" key="home-privacyModeDefault"
/>, />,