mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-15 14:17:11 +01:00
20 lines
501 B
JavaScript
20 lines
501 B
JavaScript
|
const injectCss = require('inject-css')
|
||
|
const MetaMaskUiCss = require('../ui/css')
|
||
|
const startPopup = require('../app/scripts/popup-core')
|
||
|
const setupIframe = require('./lib/setup-iframe.js')
|
||
|
|
||
|
|
||
|
var css = MetaMaskUiCss()
|
||
|
injectCss(css)
|
||
|
|
||
|
var name = 'popup'
|
||
|
window.METAMASK_UI_TYPE = name
|
||
|
|
||
|
var iframeStream = setupIframe({
|
||
|
zeroClientProvider: 'http://127.0.0.1:9001',
|
||
|
sandboxAttributes: ['allow-scripts', 'allow-popups', 'allow-same-origin'],
|
||
|
container: document.body,
|
||
|
})
|
||
|
|
||
|
startPopup(iframeStream)
|