aboutsummaryrefslogtreecommitdiffstats
path: root/mock-dev.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-02-01 15:39:39 +0800
committerkumavis <aaron@kumavis.me>2017-02-01 15:39:39 +0800
commitd326e7d11efff754670164560964a146cdf7f53b (patch)
tree9fa779da9aa3838fcc399803079e7d92d00c5861 /mock-dev.js
parentad060e267810dfd1217d5ddf40516976c8b2d68e (diff)
downloadtangerine-wallet-browser-d326e7d11efff754670164560964a146cdf7f53b.tar
tangerine-wallet-browser-d326e7d11efff754670164560964a146cdf7f53b.tar.gz
tangerine-wallet-browser-d326e7d11efff754670164560964a146cdf7f53b.tar.bz2
tangerine-wallet-browser-d326e7d11efff754670164560964a146cdf7f53b.tar.lz
tangerine-wallet-browser-d326e7d11efff754670164560964a146cdf7f53b.tar.xz
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.js16
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
//