aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-09-07 04:59:52 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-09-07 04:59:52 +0800
commit0217984a40d92e706312216561477490e59e8dcb (patch)
treeadd6f99216d8dc5752ff7732791554133549b469 /app/scripts
parentb5f48730cd2c024997d30fa272ab08ba7f686893 (diff)
parent351db952c52950b2702f1bd7c9d0f165df34def2 (diff)
downloadtangerine-wallet-browser-0217984a40d92e706312216561477490e59e8dcb.tar
tangerine-wallet-browser-0217984a40d92e706312216561477490e59e8dcb.tar.gz
tangerine-wallet-browser-0217984a40d92e706312216561477490e59e8dcb.tar.bz2
tangerine-wallet-browser-0217984a40d92e706312216561477490e59e8dcb.tar.lz
tangerine-wallet-browser-0217984a40d92e706312216561477490e59e8dcb.tar.xz
tangerine-wallet-browser-0217984a40d92e706312216561477490e59e8dcb.tar.zst
tangerine-wallet-browser-0217984a40d92e706312216561477490e59e8dcb.zip
Merge branch 'master' into readd-loose
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/inpage-provider.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js
index 7c74a62d3..c63af06dc 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -43,8 +43,9 @@ function MetamaskInpageProvider (connectionStream) {
// handle sendAsync requests via asyncProvider
self.sendAsync = function (payload, cb) {
// rewrite request ids
- var request = eachJsonMessage(payload, (message) => {
- var newId = createRandomId()
+ var request = eachJsonMessage(payload, (_message) => {
+ const message = Object.assign({}, _message)
+ const newId = createRandomId()
self.idMap[newId] = message.id
message.id = newId
return message