diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-03-30 01:53:43 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-03-30 01:53:43 +0800 |
commit | 84b3415b4479eb849b69d77a7e178c67fcaaf3fb (patch) | |
tree | cb6b0d50c9fd4f24283edffe6ba05c93dadef113 /library/controller.js | |
parent | a20a237282c38da86b03625d08b48c2e58e83523 (diff) | |
download | tangerine-wallet-browser-84b3415b4479eb849b69d77a7e178c67fcaaf3fb.tar tangerine-wallet-browser-84b3415b4479eb849b69d77a7e178c67fcaaf3fb.tar.gz tangerine-wallet-browser-84b3415b4479eb849b69d77a7e178c67fcaaf3fb.tar.bz2 tangerine-wallet-browser-84b3415b4479eb849b69d77a7e178c67fcaaf3fb.tar.lz tangerine-wallet-browser-84b3415b4479eb849b69d77a7e178c67fcaaf3fb.tar.xz tangerine-wallet-browser-84b3415b4479eb849b69d77a7e178c67fcaaf3fb.tar.zst tangerine-wallet-browser-84b3415b4479eb849b69d77a7e178c67fcaaf3fb.zip |
WIP: lost enital call from dapp to getAccounts
Diffstat (limited to 'library/controller.js')
-rw-r--r-- | library/controller.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/library/controller.js b/library/controller.js index cbba9584a..c3f2fa5fa 100644 --- a/library/controller.js +++ b/library/controller.js @@ -6,17 +6,17 @@ const background = new SWcontroller({ fileName: '/popup/sw-build.js', }) -background.on('ready', (readSw) => { +background.on('ready', (_) => { // var inpageProvider = new MetamaskInpageProvider(SwStream(background.controller)) let pageStream = new ParentStream() let swStream = SwStream(background.controller) pageStream.pipe(swStream).pipe(pageStream) + console.log('********************WOOP*********************') }) background.on('error', console.error) background.startWorker() -console.log('hello from controller') /* const urlUtil = require('url') const extend = require('xtend') @@ -167,14 +167,6 @@ function initializeZeroClient() { window.localStorage[STORAGE_KEY] = JSON.stringify(data) } - function getParentHref(){ - try { - var parentLocation = window.parent.location - return parentLocation.hostname + ':' + parentLocation.port - } catch (err) { - return 'unknown' - } - } } |