aboutsummaryrefslogtreecommitdiffstats
path: root/library/src/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/background.js')
-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')