diff options
author | Bruno Barbieri <bruno.barbieri@consensys.net> | 2019-02-02 03:05:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-02 03:05:46 +0800 |
commit | cc03a7db6aca21f10aed5b27c7c4d4b87b847c8d (patch) | |
tree | 8d3495de1f9473f98bcc22048006788b4800a943 | |
parent | 015414c31d2ce4d4682f05c1500dea252a0e56fd (diff) | |
download | tangerine-wallet-browser-cc03a7db6aca21f10aed5b27c7c4d4b87b847c8d.tar tangerine-wallet-browser-cc03a7db6aca21f10aed5b27c7c4d4b87b847c8d.tar.gz tangerine-wallet-browser-cc03a7db6aca21f10aed5b27c7c4d4b87b847c8d.tar.bz2 tangerine-wallet-browser-cc03a7db6aca21f10aed5b27c7c4d4b87b847c8d.tar.lz tangerine-wallet-browser-cc03a7db6aca21f10aed5b27c7c4d4b87b847c8d.tar.xz tangerine-wallet-browser-cc03a7db6aca21f10aed5b27c7c4d4b87b847c8d.tar.zst tangerine-wallet-browser-cc03a7db6aca21f10aed5b27c7c4d4b87b847c8d.zip |
Privacy mode fixes (#6087)
* Version 5.3.4 RC1
* fix old ui approval screen
* fix error caused by meshtesting iframe
* fix linter errors
-rw-r--r-- | app/scripts/controllers/provider-approval.js | 28 | ||||
-rw-r--r-- | old-ui/app/app.js | 2 |
2 files changed, 16 insertions, 14 deletions
diff --git a/app/scripts/controllers/provider-approval.js b/app/scripts/controllers/provider-approval.js index b8cf04341..2c9182b52 100644 --- a/app/scripts/controllers/provider-approval.js +++ b/app/scripts/controllers/provider-approval.js @@ -28,19 +28,21 @@ class ProviderApprovalController { if (platform && platform.addMessageListener) { platform.addMessageListener(({ action = '', force, origin, siteTitle, siteImage }, { tab }) => { - switch (action) { - case 'init-provider-request': - this._handleProviderRequest(origin, siteTitle, siteImage, force, tab.id) - break - case 'init-is-approved': - this._handleIsApproved(origin, tab.id) - break - case 'init-is-unlocked': - this._handleIsUnlocked(tab.id) - break - case 'init-privacy-request': - this._handlePrivacyRequest(tab.id) - break + if (tab && tab.id) { + switch (action) { + case 'init-provider-request': + this._handleProviderRequest(origin, siteTitle, siteImage, force, tab.id) + break + case 'init-is-approved': + this._handleIsApproved(origin, tab.id) + break + case 'init-is-unlocked': + this._handleIsUnlocked(tab.id) + break + case 'init-privacy-request': + this._handlePrivacyRequest(tab.id) + break + } } }) } diff --git a/old-ui/app/app.js b/old-ui/app/app.js index f694693f5..e81899538 100644 --- a/old-ui/app/app.js +++ b/old-ui/app/app.js @@ -219,7 +219,7 @@ App.prototype.renderPrimary = function () { if (providerRequests && providerRequests.length > 0) { log.debug('rendering provider API approval screen') - return h(ProviderApproval, { origin: providerRequests[0].origin }) + return h(ProviderApproval, { origin: providerRequests[0].origin, tabID: providerRequests[0].tabID }) } // show current view |