mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add query param restoring to mocker
This commit is contained in:
parent
c3f18fcf2b
commit
a95b5c4a96
@ -9,13 +9,13 @@ const Selector = require('./selector')
|
||||
const qs = require('qs')
|
||||
let queryString = qs.parse(window.location.href.split('#')[1])
|
||||
let selectedView = queryString.view || 'account detail'
|
||||
const firstState = states[selectedView]
|
||||
updateQueryParams(selectedView)
|
||||
|
||||
// CSS
|
||||
const MetaMaskUiCss = require('../ui/css')
|
||||
const injectCss = require('inject-css')
|
||||
|
||||
const firstState = states[selectedView]
|
||||
updateQueryParams()
|
||||
|
||||
function updateQueryParams(newView) {
|
||||
queryString.view = newView
|
||||
|
Loading…
Reference in New Issue
Block a user