Skip to content

Commit

Permalink
Update postMessage structure for TrezorConnect 8 (#10192)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing authored Jan 21, 2021
1 parent 408586a commit 9b4715c
Show file tree
Hide file tree
Showing 3 changed files with 378 additions and 32 deletions.
2 changes: 1 addition & 1 deletion app/vendor/trezor/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ Passing messages from popup to background script

window.addEventListener('message', event => {
if (port && event.source === window && event.data) {
port.postMessage(event.data);
port.postMessage({ data: event.data });
}
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"eth-query": "^2.1.2",
"eth-rpc-errors": "^4.0.2",
"eth-sig-util": "^3.0.0",
"eth-trezor-keyring": "^0.4.0",
"eth-trezor-keyring": "^0.5.2",
"ethereum-ens-network-map": "^1.0.2",
"ethereumjs-abi": "^0.6.4",
"ethereumjs-tx": "1.3.7",
Expand Down
Loading

0 comments on commit 9b4715c

Please sign in to comment.