|
|
@ -120,7 +120,7 @@ function setupController (initState, client) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
function connectRemote (connectionStream, context) { |
|
|
|
function connectRemote (connectionStream, context) { |
|
|
|
var isMetaMaskInternalProcess = (context !== 'dapp') |
|
|
|
var isMetaMaskInternalProcess = (context === 'popup') |
|
|
|
if (isMetaMaskInternalProcess) { |
|
|
|
if (isMetaMaskInternalProcess) { |
|
|
|
// communication with popup
|
|
|
|
// communication with popup
|
|
|
|
controller.setupTrustedCommunication(connectionStream, 'MetaMask') |
|
|
|
controller.setupTrustedCommunication(connectionStream, 'MetaMask') |
|
|
|