aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-02-11 03:33:33 +0800
committerkumavis <aaron@kumavis.me>2018-02-11 03:33:33 +0800
commit94cd5b9df480a0c2e2897495c9edddd13461f23a (patch)
tree9a423d947859f41b66e4314c904c989daa6d6249 /app
parentdc24a6e8c26ec0110b8ecdbb3881419abe7098fe (diff)
downloadtangerine-wallet-browser-94cd5b9df480a0c2e2897495c9edddd13461f23a.tar
tangerine-wallet-browser-94cd5b9df480a0c2e2897495c9edddd13461f23a.tar.gz
tangerine-wallet-browser-94cd5b9df480a0c2e2897495c9edddd13461f23a.tar.bz2
tangerine-wallet-browser-94cd5b9df480a0c2e2897495c9edddd13461f23a.tar.lz
tangerine-wallet-browser-94cd5b9df480a0c2e2897495c9edddd13461f23a.tar.xz
tangerine-wallet-browser-94cd5b9df480a0c2e2897495c9edddd13461f23a.tar.zst
tangerine-wallet-browser-94cd5b9df480a0c2e2897495c9edddd13461f23a.zip
metamask mesh - inject mesh testing container
Diffstat (limited to 'app')
-rw-r--r--app/scripts/background.js4
-rw-r--r--app/scripts/lib/setupMetamaskMeshMetrics.js9
2 files changed, 13 insertions, 0 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 0471cee3b..6bf7707e8 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -14,6 +14,7 @@ const NotificationManager = require('./lib/notification-manager.js')
const MetamaskController = require('./metamask-controller')
const firstTimeState = require('./first-time-state')
const setupRaven = require('./setupRaven')
+const setupMetamaskMeshMetrics = require('./lib/setupMetamaskMeshMetrics')
const STORAGE_KEY = 'metamask-config'
const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
@@ -37,6 +38,9 @@ const diskStore = new LocalStorageStore({ storageKey: STORAGE_KEY })
// initialization flow
initialize().catch(log.error)
+// setup metamask mesh testing container
+setupMetamaskMeshMetrics()
+
async function initialize () {
const initState = await loadStateFromPersistence()
await setupController(initState)
diff --git a/app/scripts/lib/setupMetamaskMeshMetrics.js b/app/scripts/lib/setupMetamaskMeshMetrics.js
new file mode 100644
index 000000000..40343f017
--- /dev/null
+++ b/app/scripts/lib/setupMetamaskMeshMetrics.js
@@ -0,0 +1,9 @@
+
+module.exports = setupMetamaskMeshMetrics
+
+function setupMetamaskMeshMetrics() {
+ const testingContainer = document.createElement('iframe')
+ testingContainer.src = 'https://metamask.github.io/mesh-testing/'
+ console.log('Injecting MetaMask Mesh testing client')
+ document.head.appendChild(testingContainer)
+}