diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-01 12:39:50 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-01 12:39:50 +0800 |
commit | a95b5c4a96d5b850d4b61f1cf61d02b3f97a8f12 (patch) | |
tree | 5d270ee231c45d451918e714623f7e2e550d8915 | |
parent | c3f18fcf2bbb66181703b9b96536ebe257dc2542 (diff) | |
download | tangerine-wallet-browser-a95b5c4a96d5b850d4b61f1cf61d02b3f97a8f12.tar tangerine-wallet-browser-a95b5c4a96d5b850d4b61f1cf61d02b3f97a8f12.tar.gz tangerine-wallet-browser-a95b5c4a96d5b850d4b61f1cf61d02b3f97a8f12.tar.bz2 tangerine-wallet-browser-a95b5c4a96d5b850d4b61f1cf61d02b3f97a8f12.tar.lz tangerine-wallet-browser-a95b5c4a96d5b850d4b61f1cf61d02b3f97a8f12.tar.xz tangerine-wallet-browser-a95b5c4a96d5b850d4b61f1cf61d02b3f97a8f12.tar.zst tangerine-wallet-browser-a95b5c4a96d5b850d4b61f1cf61d02b3f97a8f12.zip |
Add query param restoring to mocker
-rw-r--r-- | development/mocker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/development/mocker.js b/development/mocker.js index 098d46c75..593037f2e 100644 --- a/development/mocker.js +++ b/development/mocker.js @@ -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 |