1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 04:46:10 +01:00
metamask-extension/library/controller.js

20 lines
374 B
JavaScript
Raw Normal View History

2017-03-10 03:24:41 +01:00
const SWcontroller = require('./sw-controller')
console.log('outside:open')
const background = new SWcontroller({
fileName: 'sw-build.js',
registerOpts: {
scope: './',
}
})
background.startWorker()
.then(registerdWorker => {
return background.sendMessage('connect')
})
.then((port) => {
debugger
})
.catch(err => {
console.error(`SW Controller: ${err}`)
})