diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-02-16 04:08:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 04:08:06 +0800 |
commit | 58871cb146759aef8af141fde6fce95b664da54e (patch) | |
tree | 5a50142f9072f48ea3ddbbad20e118e7ec04da7f /app | |
parent | 884f097cc141c79790a0ea900cf75dcc464cc766 (diff) | |
parent | 94cd5b9df480a0c2e2897495c9edddd13461f23a (diff) | |
download | tangerine-wallet-browser-58871cb146759aef8af141fde6fce95b664da54e.tar tangerine-wallet-browser-58871cb146759aef8af141fde6fce95b664da54e.tar.gz tangerine-wallet-browser-58871cb146759aef8af141fde6fce95b664da54e.tar.bz2 tangerine-wallet-browser-58871cb146759aef8af141fde6fce95b664da54e.tar.lz tangerine-wallet-browser-58871cb146759aef8af141fde6fce95b664da54e.tar.xz tangerine-wallet-browser-58871cb146759aef8af141fde6fce95b664da54e.tar.zst tangerine-wallet-browser-58871cb146759aef8af141fde6fce95b664da54e.zip |
Merge pull request #3222 from MetaMask/mesh-test
metamask mesh - inject mesh testing container
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/background.js | 4 | ||||
-rw-r--r-- | app/scripts/lib/setupMetamaskMeshMetrics.js | 9 |
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) +} |