diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-09-02 03:07:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-02 03:07:28 +0800 |
commit | 2885a9547187ce1ad0fb3bed1935387d901942a8 (patch) | |
tree | 0d30f656ec4f87a8f96fc4029775cfe691a61fa5 /mascara/src/proxy.js | |
parent | 33dfed15a63659454305eb642f8430c6aeebed31 (diff) | |
parent | dbcc82f5c42a212e02ec33efb428fef15e0d72aa (diff) | |
download | tangerine-wallet-browser-2885a9547187ce1ad0fb3bed1935387d901942a8.tar tangerine-wallet-browser-2885a9547187ce1ad0fb3bed1935387d901942a8.tar.gz tangerine-wallet-browser-2885a9547187ce1ad0fb3bed1935387d901942a8.tar.bz2 tangerine-wallet-browser-2885a9547187ce1ad0fb3bed1935387d901942a8.tar.lz tangerine-wallet-browser-2885a9547187ce1ad0fb3bed1935387d901942a8.tar.xz tangerine-wallet-browser-2885a9547187ce1ad0fb3bed1935387d901942a8.tar.zst tangerine-wallet-browser-2885a9547187ce1ad0fb3bed1935387d901942a8.zip |
Merge pull request #2008 from MetaMask/mascara-fix
mascara - fix iframe stream constructor
Diffstat (limited to 'mascara/src/proxy.js')
-rw-r--r-- | mascara/src/proxy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js index eabc547b4..5b95175f1 100644 --- a/mascara/src/proxy.js +++ b/mascara/src/proxy.js @@ -1,4 +1,4 @@ -const ParentStream = require('iframe-stream').ParentStream +const createParentStream = require('iframe-stream').ParentStream const SWcontroller = require('client-sw-ready-event/lib/sw-client.js') const SwStream = require('sw-stream/lib/sw-stream.js') const SetupUntrustedComunication = ('./lib/setup-untrusted-connection.js') @@ -11,7 +11,7 @@ const background = new SWcontroller({ intervalDelay, }) -const pageStream = new ParentStream() +const pageStream = createParentStream() background.on('ready', (_) => { let swStream = SwStream({ serviceWorker: background.controller, |