aboutsummaryrefslogtreecommitdiffstats
path: root/library/lib/setup-iframe.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/lib/setup-iframe.js')
-rw-r--r--library/lib/setup-iframe.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/lib/setup-iframe.js b/library/lib/setup-iframe.js
index dfb51c676..db67163df 100644
--- a/library/lib/setup-iframe.js
+++ b/library/lib/setup-iframe.js
@@ -8,10 +8,11 @@ function setupIframe(opts) {
opts = opts || {}
var frame = Iframe({
src: opts.zeroClientProvider || 'https://zero.metamask.io/',
- container: document.head,
+ container: opts.container || document.head,
sandboxAttributes: opts.sandboxAttributes || ['allow-scripts', 'allow-popups'],
})
var iframe = frame.iframe
+ iframe.style.setProperty('display', 'none')
var iframeStream = new IframeStream(iframe)
return iframeStream