diff options
store unconfirmedTxs in chrome sync storage
Diffstat (limited to 'app/scripts/inpage.js')
-rw-r--r-- | app/scripts/inpage.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index 006a8e0bb..1d264975e 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -2,8 +2,9 @@ const web3 = require('web3') const MetamaskProvider = require('./lib/metamask-provider.js') const rpcUrl = 'https://rpc.metamask.io' -const messageType = 'metamaskMessage' const documentOrigin = window.location.origin +const allowedMessageTarget = 'metamask' +const allowedMessageType = 'addUnconfirmedTx' var provider = new MetamaskProvider(forwardPayload, rpcUrl) @@ -15,7 +16,8 @@ window.web3 = web3 function forwardPayload(payload){ window.postMessage({ - type: messageType, + to: allowedMessageTarget, + type: allowedMessageType, payload: payload, }, documentOrigin) }
\ No newline at end of file |