aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-04-03 17:04:48 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-04-03 17:04:48 +0800
commit9736e96a93799f081ede01bc7ecd295fa264ffd5 (patch)
tree1f22dd513b3c8f0aa91db6e8f6ca3037d5031c00
parent12065a10aab05690b45c83648ee26f85f403b864 (diff)
downloadtangerine-wallet-browser-9736e96a93799f081ede01bc7ecd295fa264ffd5.tar
tangerine-wallet-browser-9736e96a93799f081ede01bc7ecd295fa264ffd5.tar.gz
tangerine-wallet-browser-9736e96a93799f081ede01bc7ecd295fa264ffd5.tar.bz2
tangerine-wallet-browser-9736e96a93799f081ede01bc7ecd295fa264ffd5.tar.lz
tangerine-wallet-browser-9736e96a93799f081ede01bc7ecd295fa264ffd5.tar.xz
tangerine-wallet-browser-9736e96a93799f081ede01bc7ecd295fa264ffd5.tar.zst
tangerine-wallet-browser-9736e96a93799f081ede01bc7ecd295fa264ffd5.zip
Check to see if connection is from popup
-rw-r--r--library/src/background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/background.js b/library/src/background.js
index 0af692ab8..dd0e13239 100644
--- a/library/src/background.js
+++ b/library/src/background.js
@@ -120,7 +120,7 @@ function setupController (initState, client) {
})
function connectRemote (connectionStream, context) {
- var isMetaMaskInternalProcess = (context !== 'dapp')
+ var isMetaMaskInternalProcess = (context === 'popup')
if (isMetaMaskInternalProcess) {
// communication with popup
controller.setupTrustedCommunication(connectionStream, 'MetaMask')