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 }