diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-04-17 14:03:47 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-04-17 23:58:37 +0800 |
commit | b0a105ce809b8b7e5e4431bd1ddecc523586cad0 (patch) | |
tree | a1b0877175b6555dcded6bb61bc07e1ada81e12d /ui/app/first-time | |
parent | e4eb69dcc290a7e7eb27cab7ec57a8097345d81e (diff) | |
download | tangerine-wallet-browser-b0a105ce809b8b7e5e4431bd1ddecc523586cad0.tar tangerine-wallet-browser-b0a105ce809b8b7e5e4431bd1ddecc523586cad0.tar.gz tangerine-wallet-browser-b0a105ce809b8b7e5e4431bd1ddecc523586cad0.tar.bz2 tangerine-wallet-browser-b0a105ce809b8b7e5e4431bd1ddecc523586cad0.tar.lz tangerine-wallet-browser-b0a105ce809b8b7e5e4431bd1ddecc523586cad0.tar.xz tangerine-wallet-browser-b0a105ce809b8b7e5e4431bd1ddecc523586cad0.tar.zst tangerine-wallet-browser-b0a105ce809b8b7e5e4431bd1ddecc523586cad0.zip |
Fix confirmation popup not always opening
Diffstat (limited to 'ui/app/first-time')
-rw-r--r-- | ui/app/first-time/init-menu.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/first-time/init-menu.js b/ui/app/first-time/init-menu.js index 692b01c8c..3df040922 100644 --- a/ui/app/first-time/init-menu.js +++ b/ui/app/first-time/init-menu.js @@ -8,7 +8,8 @@ const actions = require('../actions') const Tooltip = require('../components/tooltip') const getCaretCoordinates = require('textarea-caret') const { RESTORE_VAULT_ROUTE, DEFAULT_ROUTE } = require('../routes') -const environmentType = require('../../../app/scripts/lib/environment-type') +const { getEnvironmentType } = require('../../../app/scripts/lib/util') +const { ENVIRONMENT_TYPE_POPUP } = require('../../../app/scripts/lib/enums') const { OLD_UI_NETWORK_TYPE } = require('../../../app/scripts/config').enums class InitializeMenuScreen extends Component { @@ -180,7 +181,7 @@ class InitializeMenuScreen extends Component { showRestoreVault () { this.props.markPasswordForgotten() - if (environmentType() === 'popup') { + if (getEnvironmentType(window.location.href) === ENVIRONMENT_TYPE_POPUP) { global.platform.openExtensionInBrowser() } |