diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-07-04 00:40:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-04 00:40:25 +0800 |
commit | 1f0cf11af1c94e750bbc4c5238c3ee028350a6c6 (patch) | |
tree | 5e8d89ef2d904d7b8dffaa356a6b21a8b542a693 /development/mock-dev.js | |
parent | 4d9ef0dd7f3e788f7734c505b72edb4657ddec9d (diff) | |
parent | 53f1072ff467d6284d1fc3143330961749baaf5e (diff) | |
download | tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.gz tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.bz2 tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.lz tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.xz tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.zst tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.zip |
Merge pull request #4712 from MetaMask/lint-fix
Lint - Lint all the things (without conflicts!)
Diffstat (limited to 'development/mock-dev.js')
-rw-r--r-- | development/mock-dev.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/development/mock-dev.js b/development/mock-dev.js index f332633d5..15f6ad4bf 100644 --- a/development/mock-dev.js +++ b/development/mock-dev.js @@ -12,7 +12,6 @@ * To use, run `npm run mock`. */ -const extend = require('xtend') const render = require('react-dom').render const h = require('react-hyperscript') const Root = require('../ui/app/root') @@ -24,7 +23,6 @@ const Selector = require('./selector') const MetamaskController = require('../app/scripts/metamask-controller') const firstTimeState = require('../app/scripts/first-time-state') const ExtensionPlatform = require('../app/scripts/platforms/extension') -const extension = require('./mockExtension') const noop = function () {} const log = require('loglevel') @@ -81,14 +79,14 @@ const controller = new MetamaskController({ initState: firstTimeState, }) global.metamaskController = controller -global.platform = new ExtensionPlatform +global.platform = new ExtensionPlatform() // // User Interface // actions._setBackgroundConnection(controller.getApi()) -actions.update = function(stateName) { +actions.update = function (stateName) { selectedView = stateName updateQueryParams(stateName) const newState = states[selectedView] @@ -98,7 +96,7 @@ actions.update = function(stateName) { } } -function modifyBackgroundConnection(backgroundConnectionModifier) { +function modifyBackgroundConnection (backgroundConnectionModifier) { const modifiedBackgroundConnection = Object.assign({}, controller.getApi(), backgroundConnectionModifier) actions._setBackgroundConnection(modifiedBackgroundConnection) } @@ -112,7 +110,7 @@ var store = configureStore(firstState) // start app startApp() -function startApp(){ +function startApp () { const body = document.body const container = document.createElement('div') container.id = 'test-container' |