diff options
author | kumavis <aaron@kumavis.me> | 2017-02-01 15:39:39 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-02-01 15:39:39 +0800 |
commit | d326e7d11efff754670164560964a146cdf7f53b (patch) | |
tree | 9fa779da9aa3838fcc399803079e7d92d00c5861 /mock-dev.js | |
parent | ad060e267810dfd1217d5ddf40516976c8b2d68e (diff) | |
download | tangerine-wallet-browser-d326e7d11efff754670164560964a146cdf7f53b.tar.gz tangerine-wallet-browser-d326e7d11efff754670164560964a146cdf7f53b.tar.zst tangerine-wallet-browser-d326e7d11efff754670164560964a146cdf7f53b.zip |
tests - mock-dev - remove persistence
Diffstat (limited to 'mock-dev.js')
-rw-r--r-- | mock-dev.js | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/mock-dev.js b/mock-dev.js index bd3a1ad77..b20c3be3a 100644 --- a/mock-dev.js +++ b/mock-dev.js @@ -16,7 +16,6 @@ const extend = require('xtend') const render = require('react-dom').render const h = require('react-hyperscript') const pipe = require('mississippi').pipe -const LocalStorageStore = require('obs-store/lib/localStorage') const Root = require('./ui/app/root') const configureStore = require('./ui/app/store') const actions = require('./ui/app/actions') @@ -27,7 +26,6 @@ const firstTimeState = require('./app/scripts/first-time-state') const extension = require('./development/mockExtension') const noop = function () {} -const STORAGE_KEY = 'metamask-config' // // Query String @@ -56,27 +54,15 @@ const injectCss = require('inject-css') // MetaMask Controller // -let dataStore = new LocalStorageStore({ storageKey: STORAGE_KEY }) -// initial state for first time users -if (!dataStore.getState()) { - dataStore.putState(firstTimeState) -} - const controller = new MetamaskController({ // User confirmation callbacks: showUnconfirmedMessage: noop, unlockAccountMessage: noop, showUnapprovedTx: noop, // initial state - initState: dataStore.getState(), + initState: firstTimeState, }) -// setup state persistence -pipe( - controller.store, - dataStore -) - // // User Interface // |