diff options
author | Sneh Koul <35871990+Sneh1999@users.noreply.github.com> | 2019-04-25 01:49:38 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2019-04-25 01:49:38 +0800 |
commit | 6a60562d6649d88f24bd849b325871bb256a0001 (patch) | |
tree | 2230335f440e36c23f47e0794e94cf6b0b312024 /app | |
parent | 8f7577f7faf5a8497bd9c39593b934b3613ae0a5 (diff) | |
download | tangerine-wallet-browser-6a60562d6649d88f24bd849b325871bb256a0001.tar tangerine-wallet-browser-6a60562d6649d88f24bd849b325871bb256a0001.tar.gz tangerine-wallet-browser-6a60562d6649d88f24bd849b325871bb256a0001.tar.bz2 tangerine-wallet-browser-6a60562d6649d88f24bd849b325871bb256a0001.tar.lz tangerine-wallet-browser-6a60562d6649d88f24bd849b325871bb256a0001.tar.xz tangerine-wallet-browser-6a60562d6649d88f24bd849b325871bb256a0001.tar.zst tangerine-wallet-browser-6a60562d6649d88f24bd849b325871bb256a0001.zip |
Opens the original webpage from where installation of MetaMask was re… (#6272)
* Opens the original webpage from where installation of MetaMask was requested
* Asking for dynamic permissions
* code for forwarder/without extra permissions
* Lint fix for onboardingComplete message sending code.
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/inpage.js | 6 | ||||
-rw-r--r-- | app/scripts/metamask-controller.js | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index 68394d1ae..71cfb875c 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -218,6 +218,12 @@ inpageProvider.publicConfigStore.subscribe(function (state) { web3.eth.defaultAccount = state.selectedAddress }) +inpageProvider.publicConfigStore.subscribe(function (state) { + if (state.onboardingcomplete) { + window.postMessage('onboardingcomplete', '*') + } +}) + // need to make sure we aren't affected by overlapping namespaces // and that we dont affect the app with our namespace // mostly a fix for web3's BigNumber if AMD's "define" is defined... diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index d2a55acaa..0506e3116 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -320,6 +320,7 @@ module.exports = class MetamaskController extends EventEmitter { const result = { selectedAddress: memState.isUnlocked ? memState.selectedAddress : undefined, networkVersion: memState.network, + onboardingcomplete: memState.completedOnboarding, } return result } |