Add query param restoring to mocker

feature/default_network_editable
Dan Finlay 9 years ago
parent c3f18fcf2b
commit a95b5c4a96
  1. 4
      development/mocker.js

@ -9,13 +9,13 @@ const Selector = require('./selector')
const qs = require('qs') const qs = require('qs')
let queryString = qs.parse(window.location.href.split('#')[1]) let queryString = qs.parse(window.location.href.split('#')[1])
let selectedView = queryString.view || 'account detail' let selectedView = queryString.view || 'account detail'
const firstState = states[selectedView]
updateQueryParams(selectedView)
// CSS // CSS
const MetaMaskUiCss = require('../ui/css') const MetaMaskUiCss = require('../ui/css')
const injectCss = require('inject-css') const injectCss = require('inject-css')
const firstState = states[selectedView]
updateQueryParams()
function updateQueryParams(newView) { function updateQueryParams(newView) {
queryString.view = newView queryString.view = newView

Loading…
Cancel
Save