aboutsummaryrefslogtreecommitdiffstats
path: root/library/lib/setup-iframe.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-04-03 13:01:44 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-04-03 13:01:44 +0800
commit8d49d519c090d287484008346aba1df6d7ad77e7 (patch)
treea4064ac0a05429c591e6776bf496c803d1819ae9 /library/lib/setup-iframe.js
parent29a602a89b176e7af3f15297c2f586a4ece0a726 (diff)
downloadtangerine-wallet-browser-8d49d519c090d287484008346aba1df6d7ad77e7.tar
tangerine-wallet-browser-8d49d519c090d287484008346aba1df6d7ad77e7.tar.gz
tangerine-wallet-browser-8d49d519c090d287484008346aba1df6d7ad77e7.tar.bz2
tangerine-wallet-browser-8d49d519c090d287484008346aba1df6d7ad77e7.tar.lz
tangerine-wallet-browser-8d49d519c090d287484008346aba1df6d7ad77e7.tar.xz
tangerine-wallet-browser-8d49d519c090d287484008346aba1df6d7ad77e7.tar.zst
tangerine-wallet-browser-8d49d519c090d287484008346aba1df6d7ad77e7.zip
Rename and move around files
Diffstat (limited to 'library/lib/setup-iframe.js')
-rw-r--r--library/lib/setup-iframe.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/library/lib/setup-iframe.js b/library/lib/setup-iframe.js
deleted file mode 100644
index db67163df..000000000
--- a/library/lib/setup-iframe.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const Iframe = require('iframe')
-const IframeStream = 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 = new IframeStream(iframe)
-
- return iframeStream
-}