Check to see if connection is from popup

feature/default_network_editable
frankiebee 8 years ago
parent 12065a10aa
commit 9736e96a93
  1. 2
      library/src/background.js

@ -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')

Loading…
Cancel
Save