diff options
author | Paul Bouchon <mail@bitpshr.net> | 2019-01-31 02:27:33 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2019-01-31 02:27:33 +0800 |
commit | db776b5a02187d4545e3fb2b9dfd33d838145af7 (patch) | |
tree | c657d478d32005b80c8e6aa5e7ec45b075e8e954 /app/scripts/platforms/extension.js | |
parent | b2813d1113b75df09e9bb9f0781f65a2544adcfb (diff) | |
download | tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.tar.gz tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.tar.zst tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.zip |
EIP-1102 updates (#6006)
* Update privacy notice
* Respond to 1102 messages using tab ID
Diffstat (limited to 'app/scripts/platforms/extension.js')
-rw-r--r-- | app/scripts/platforms/extension.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js index e8779739c..3dadd5d34 100644 --- a/app/scripts/platforms/extension.js +++ b/app/scripts/platforms/extension.js @@ -65,9 +65,11 @@ class ExtensionPlatform { } sendMessage (message, query = {}) { - extension.tabs.query(query, tabs => { + const id = query.id + delete query.id + extension.tabs.query({ ...query }, tabs => { tabs.forEach(tab => { - extension.tabs.sendMessage(tab.id, message) + extension.tabs.sendMessage(id || tab.id, message) }) }) } |