diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-09-14 03:18:19 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-09-14 03:18:19 +0800 |
commit | 19c1b1fd8e28c10f85ed5f612d10c8b87e2e5c8a (patch) | |
tree | 425f11071576a44ca4327125056ac217ae499bae /library/popup.js | |
parent | 4aa5114019870ea6606d98ee9bf5092b45ed9fc5 (diff) | |
parent | 54ecb09a209bf3ffeba968a79acfa500625b0d4a (diff) | |
download | tangerine-wallet-browser-19c1b1fd8e28c10f85ed5f612d10c8b87e2e5c8a.tar tangerine-wallet-browser-19c1b1fd8e28c10f85ed5f612d10c8b87e2e5c8a.tar.gz tangerine-wallet-browser-19c1b1fd8e28c10f85ed5f612d10c8b87e2e5c8a.tar.bz2 tangerine-wallet-browser-19c1b1fd8e28c10f85ed5f612d10c8b87e2e5c8a.tar.lz tangerine-wallet-browser-19c1b1fd8e28c10f85ed5f612d10c8b87e2e5c8a.tar.xz tangerine-wallet-browser-19c1b1fd8e28c10f85ed5f612d10c8b87e2e5c8a.tar.zst tangerine-wallet-browser-19c1b1fd8e28c10f85ed5f612d10c8b87e2e5c8a.zip |
Merge branch 'master' into qrCode
Diffstat (limited to 'library/popup.js')
-rw-r--r-- | library/popup.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/library/popup.js b/library/popup.js new file mode 100644 index 000000000..667b13371 --- /dev/null +++ b/library/popup.js @@ -0,0 +1,19 @@ +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) |