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.
feature/default_network_editable
Sneh Koul 6 years ago committed by Dan Finlay
parent 8f7577f7fa
commit 6a60562d66
  1. 6
      app/scripts/inpage.js
  2. 1
      app/scripts/metamask-controller.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...

@ -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
}

Loading…
Cancel
Save