diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-03-30 06:19:46 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-03-30 06:19:46 +0800 |
commit | 4cf3beda25e7883aac37ee188d3bb102dea4afa3 (patch) | |
tree | 837961d02cc359e446342094bf8841b615029cc3 /library/controller.js | |
parent | 2b1a9c5ae880afe1a5bf2d11eefbbdf26dc6e27c (diff) | |
download | tangerine-wallet-browser-4cf3beda25e7883aac37ee188d3bb102dea4afa3.tar tangerine-wallet-browser-4cf3beda25e7883aac37ee188d3bb102dea4afa3.tar.gz tangerine-wallet-browser-4cf3beda25e7883aac37ee188d3bb102dea4afa3.tar.bz2 tangerine-wallet-browser-4cf3beda25e7883aac37ee188d3bb102dea4afa3.tar.lz tangerine-wallet-browser-4cf3beda25e7883aac37ee188d3bb102dea4afa3.tar.xz tangerine-wallet-browser-4cf3beda25e7883aac37ee188d3bb102dea4afa3.tar.zst tangerine-wallet-browser-4cf3beda25e7883aac37ee188d3bb102dea4afa3.zip |
Bump sw-stream and setup "untrusted and trusted comunication"
Diffstat (limited to 'library/controller.js')
-rw-r--r-- | library/controller.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/controller.js b/library/controller.js index 126e972c8..d4a76d316 100644 --- a/library/controller.js +++ b/library/controller.js @@ -9,7 +9,10 @@ const background = new SWcontroller({ const pageStream = new ParentStream() background.on('ready', (_) => { // var inpageProvider = new MetamaskInpageProvider(SwStream(background.controller)) - let swStream = SwStream(background.controller) + let swStream = SwStream({ + serviceWorker: background.controller, + context: 'dapp', + }) pageStream.pipe(swStream).pipe(pageStream) console.log('********************WOOP*********************') }) |