aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorBruno Barbieri <bruno.barbieri@consensys.net>2019-02-02 03:05:46 +0800
committerGitHub <noreply@github.com>2019-02-02 03:05:46 +0800
commitcc03a7db6aca21f10aed5b27c7c4d4b87b847c8d (patch)
tree8d3495de1f9473f98bcc22048006788b4800a943 /app/scripts
parent015414c31d2ce4d4682f05c1500dea252a0e56fd (diff)
downloadtangerine-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
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/controllers/provider-approval.js28
1 files changed, 15 insertions, 13 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
+ }
}
})
}