diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-03-24 02:06:38 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-03-24 02:06:38 +0800 |
commit | 45ab81fb45ec1043d617f66c308e2e7911c8e0ad (patch) | |
tree | 335c7abdb8491b39184f07c9426ae30792546385 /library/controller.js | |
parent | d4e8ff188bc82a974fd0a767c2676d4a4b9747b4 (diff) | |
download | tangerine-wallet-browser-45ab81fb45ec1043d617f66c308e2e7911c8e0ad.tar tangerine-wallet-browser-45ab81fb45ec1043d617f66c308e2e7911c8e0ad.tar.gz tangerine-wallet-browser-45ab81fb45ec1043d617f66c308e2e7911c8e0ad.tar.bz2 tangerine-wallet-browser-45ab81fb45ec1043d617f66c308e2e7911c8e0ad.tar.lz tangerine-wallet-browser-45ab81fb45ec1043d617f66c308e2e7911c8e0ad.tar.xz tangerine-wallet-browser-45ab81fb45ec1043d617f66c308e2e7911c8e0ad.tar.zst tangerine-wallet-browser-45ab81fb45ec1043d617f66c308e2e7911c8e0ad.zip |
WIP: streams->indexdb
Diffstat (limited to 'library/controller.js')
-rw-r--r-- | library/controller.js | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/library/controller.js b/library/controller.js index bad8d33cd..f0aa7172c 100644 --- a/library/controller.js +++ b/library/controller.js @@ -1,19 +1,13 @@ -const SWcontroller = require('./sw-controller') -console.log('outside:open') -const background = new SWcontroller({ - fileName: 'sw-build.js', - registerOpts: { - scope: './', - } -}) +// const SWcontroller = require('./sw-controller') +// const SwStream = require('sw-stream/lib/sw-stream.js') +// const startPopup = require('../app/scripts/popup-core') -background.startWorker() -.then(registerdWorker => { - return background.sendMessage('connect') -}) -.then((port) => { - debugger -}) -.catch(err => { - console.error(`SW Controller: ${err}`) -}) +// console.log('outside:open') +// const background = new SWcontroller({ +// fileName: 'sw-build.js', +// }) +// background.on('ready', (readSw) => { +// startPopup(SwStream(background.controller)) +// }) +// background.startWorker() +console.log('hello from controller') |