From 9736e96a93799f081ede01bc7ecd295fa264ffd5 Mon Sep 17 00:00:00 2001 From: frankiebee Date: Mon, 3 Apr 2017 11:04:48 +0200 Subject: [PATCH] Check to see if connection is from popup --- library/src/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')