aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/lib/setup-iframe.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-09-19 10:08:02 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-09-19 10:08:02 +0800
commit29dd81d029fb3cb5e0477758a59917b4cdf1091e (patch)
treebdaa8fe49a3690a1b12a6e9274f1cac8e30ac60a /mascara/src/lib/setup-iframe.js
parentbbae8d975e1800b37b05b35713728cd39f992071 (diff)
downloadtangerine-wallet-browser-29dd81d029fb3cb5e0477758a59917b4cdf1091e.tar
tangerine-wallet-browser-29dd81d029fb3cb5e0477758a59917b4cdf1091e.tar.gz
tangerine-wallet-browser-29dd81d029fb3cb5e0477758a59917b4cdf1091e.tar.bz2
tangerine-wallet-browser-29dd81d029fb3cb5e0477758a59917b4cdf1091e.tar.lz
tangerine-wallet-browser-29dd81d029fb3cb5e0477758a59917b4cdf1091e.tar.xz
tangerine-wallet-browser-29dd81d029fb3cb5e0477758a59917b4cdf1091e.tar.zst
tangerine-wallet-browser-29dd81d029fb3cb5e0477758a59917b4cdf1091e.zip
require metamascara
Diffstat (limited to 'mascara/src/lib/setup-iframe.js')
-rw-r--r--mascara/src/lib/setup-iframe.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/mascara/src/lib/setup-iframe.js b/mascara/src/lib/setup-iframe.js
deleted file mode 100644
index dcf404574..000000000
--- a/mascara/src/lib/setup-iframe.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const Iframe = require('iframe')
-const createIframeStream = require('iframe-stream').IframeStream
-
-module.exports = setupIframe
-
-
-function setupIframe(opts) {
- opts = opts || {}
- var frame = Iframe({
- src: opts.zeroClientProvider || 'https://zero.metamask.io/',
- container: opts.container || document.head,
- sandboxAttributes: opts.sandboxAttributes || ['allow-scripts', 'allow-popups'],
- })
- var iframe = frame.iframe
- iframe.style.setProperty('display', 'none')
- var iframeStream = createIframeStream(iframe)
-
- return iframeStream
-}