aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/inpage.js
diff options
context:
space:
mode:
authorSneh Koul <35871990+Sneh1999@users.noreply.github.com>2019-04-25 01:49:38 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2019-04-25 01:49:38 +0800
commit6a60562d6649d88f24bd849b325871bb256a0001 (patch)
tree2230335f440e36c23f47e0794e94cf6b0b312024 /app/scripts/inpage.js
parent8f7577f7faf5a8497bd9c39593b934b3613ae0a5 (diff)
downloadtangerine-wallet-browser-6a60562d6649d88f24bd849b325871bb256a0001.tar.gz
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/scripts/inpage.js')
-rw-r--r--app/scripts/inpage.js6
1 files changed, 6 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...