aboutsummaryrefslogtreecommitdiffstats
path: root/library/controller.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-03-24 02:06:38 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-03-24 02:06:38 +0800
commit45ab81fb45ec1043d617f66c308e2e7911c8e0ad (patch)
tree335c7abdb8491b39184f07c9426ae30792546385 /library/controller.js
parentd4e8ff188bc82a974fd0a767c2676d4a4b9747b4 (diff)
downloadtangerine-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.js30
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')