2018-02-10 11:33:33 -08:00
|
|
|
|
|
|
|
module.exports = setupMetamaskMeshMetrics
|
|
|
|
|
2018-04-19 11:37:08 -07:00
|
|
|
/**
|
|
|
|
* Injects an iframe into the curerent document for testing
|
|
|
|
*/
|
2018-02-10 11:33:33 -08:00
|
|
|
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)
|
|
|
|
}
|