aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-09-14 01:21:00 +0800
committerkumavis <aaron@kumavis.me>2017-09-14 01:21:00 +0800
commita265144176658220c5d8279ecb18c3ac0810e2c2 (patch)
tree804bac3d4eb236084ceed73149831a1c528e37fa /app/scripts
parent114dae5f8070e47409a01981f2aeff96827cbf41 (diff)
downloadtangerine-wallet-browser-a265144176658220c5d8279ecb18c3ac0810e2c2.tar
tangerine-wallet-browser-a265144176658220c5d8279ecb18c3ac0810e2c2.tar.gz
tangerine-wallet-browser-a265144176658220c5d8279ecb18c3ac0810e2c2.tar.bz2
tangerine-wallet-browser-a265144176658220c5d8279ecb18c3ac0810e2c2.tar.lz
tangerine-wallet-browser-a265144176658220c5d8279ecb18c3ac0810e2c2.tar.xz
tangerine-wallet-browser-a265144176658220c5d8279ecb18c3ac0810e2c2.tar.zst
tangerine-wallet-browser-a265144176658220c5d8279ecb18c3ac0810e2c2.zip
metamask cont - standardize multiplex stream naming
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/metamask-controller.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 735fc4af0..b28f5042a 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -346,23 +346,23 @@ module.exports = class MetamaskController extends EventEmitter {
}
// setup multiplexing
- const mx = setupMultiplex(connectionStream)
+ const mux = setupMultiplex(connectionStream)
// connect features
- this.setupProviderConnection(mx.createStream('provider'), originDomain)
- this.setupPublicConfig(mx.createStream('publicConfig'))
+ this.setupProviderConnection(mux.createStream('provider'), originDomain)
+ this.setupPublicConfig(mux.createStream('publicConfig'))
}
setupTrustedCommunication (connectionStream, originDomain) {
// setup multiplexing
- const mx = setupMultiplex(connectionStream)
+ const mux = setupMultiplex(connectionStream)
// connect features
- this.setupControllerConnection(mx.createStream('controller'))
- this.setupProviderConnection(mx.createStream('provider'), originDomain)
+ this.setupControllerConnection(mux.createStream('controller'))
+ this.setupProviderConnection(mux.createStream('provider'), originDomain)
}
sendPhishingWarning (connectionStream, hostname) {
- const mx = setupMultiplex(connectionStream)
- const phishingStream = mx.createStream('phishing')
+ const mux = setupMultiplex(connectionStream)
+ const phishingStream = mux.createStream('phishing')
phishingStream.write({ hostname })
}