diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-03-31 02:28:22 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-03-31 02:28:22 +0800 |
commit | 29a602a89b176e7af3f15297c2f586a4ece0a726 (patch) | |
tree | b60329ec0f1ab4f41d0463f5f7c38729ba6f4ec6 /library/sw-core.js | |
parent | 19302778ee0dd0535867cde29d4a5ce56d573dec (diff) | |
download | tangerine-wallet-browser-29a602a89b176e7af3f15297c2f586a4ece0a726.tar tangerine-wallet-browser-29a602a89b176e7af3f15297c2f586a4ece0a726.tar.gz tangerine-wallet-browser-29a602a89b176e7af3f15297c2f586a4ece0a726.tar.bz2 tangerine-wallet-browser-29a602a89b176e7af3f15297c2f586a4ece0a726.tar.lz tangerine-wallet-browser-29a602a89b176e7af3f15297c2f586a4ece0a726.tar.xz tangerine-wallet-browser-29a602a89b176e7af3f15297c2f586a4ece0a726.tar.zst tangerine-wallet-browser-29a602a89b176e7af3f15297c2f586a4ece0a726.zip |
Clean up
Diffstat (limited to 'library/sw-core.js')
-rw-r--r-- | library/sw-core.js | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/library/sw-core.js b/library/sw-core.js index 9f399cccf..d39bfdbfb 100644 --- a/library/sw-core.js +++ b/library/sw-core.js @@ -6,13 +6,12 @@ const SwGlobalListener = require('sw-stream/lib/sw-global-listener.js') const connectionListener = new SwGlobalListener(self) const setupMultiplex = require('../app/scripts/lib/stream-utils.js').setupMultiplex const PortStream = require('../app/scripts/lib/port-stream.js') -// const notification = require('../app/scripts/lib/notifications.js') const DbController = require('./controllers/index-db-controller') const MetamaskController = require('../app/scripts/metamask-controller') const extension = {} //require('../app/scripts/lib/extension') -// const LocalStorageStore = require('obs-store/lib/localStorage') + const storeTransform = require('obs-store/lib/transform') const Migrator = require('../app/scripts/lib/migrator/') const migrations = require('../app/scripts/migrations/') @@ -80,9 +79,9 @@ function setupController (initState, client) { const controller = new MetamaskController({ // User confirmation callbacks: - showUnconfirmedMessage: triggerUi, - unlockAccountMessage: triggerUi, - showUnapprovedTx: triggerUi, + showUnconfirmedMessage: noop, + unlockAccountMessage: noop, + showUnapprovedTx: noop, // initial state initState, }) @@ -128,7 +127,7 @@ function setupController (initState, client) { popupIsOpen = true } else { // communication with page - setupUntrustedCommunication(connectionStream, originDomain) + setupUntrustedCommunication(connectionStream, context) } } @@ -152,13 +151,4 @@ function setupController (initState, client) { return Promise.resolve() } - -// // // -// // // Etc... -// // // - -// // // popup trigger - -/*send a message to the client that has focus and tell it to open a window*/ -function triggerUi () { -} +function noop () {} |