aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-17 06:39:40 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-17 06:39:40 +0800
commit5479509618e601391586d0851acee4e408523c4f (patch)
tree68a26e9fe5589f7d5ad8b9b649a88f87d7e26585 /app/scripts/background.js
parentf1986d7a3757aea50fba798b295397e69739b891 (diff)
downloadtangerine-wallet-browser-5479509618e601391586d0851acee4e408523c4f.tar
tangerine-wallet-browser-5479509618e601391586d0851acee4e408523c4f.tar.gz
tangerine-wallet-browser-5479509618e601391586d0851acee4e408523c4f.tar.bz2
tangerine-wallet-browser-5479509618e601391586d0851acee4e408523c4f.tar.lz
tangerine-wallet-browser-5479509618e601391586d0851acee4e408523c4f.tar.xz
tangerine-wallet-browser-5479509618e601391586d0851acee4e408523c4f.tar.zst
tangerine-wallet-browser-5479509618e601391586d0851acee4e408523c4f.zip
Set up MVP for popup-based notifications.
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index e04309e74..79f8f9fd9 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -69,7 +69,7 @@ function showUnconfirmedTx (txParams, txData, onTxDoneCb) {
extension.runtime.onConnect.addListener(connectRemote)
function connectRemote (remotePort) {
- var isMetaMaskInternalProcess = (remotePort.name === 'popup')
+ var isMetaMaskInternalProcess = remotePort.name === 'popup' || remotePort.name === 'notification'
var portStream = new PortStream(remotePort)
if (isMetaMaskInternalProcess) {
// communication with popup