aboutsummaryrefslogtreecommitdiffstats
path: root/development/ui-dev.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-03 06:49:33 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-03 06:49:33 +0800
commita8f745f9fe74751b87f500af3857b66d4c80f45e (patch)
treef4f09d2b4227b35a6d2fd996113d36a8aa658ddd /development/ui-dev.js
parentcc11a623972acf707291d7b42d9dc2f8d7006e20 (diff)
downloadtangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.gz
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.bz2
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.lz
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.xz
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.tar.zst
tangerine-wallet-browser-a8f745f9fe74751b87f500af3857b66d4c80f45e.zip
eslint --fix .
Diffstat (limited to 'development/ui-dev.js')
-rw-r--r--development/ui-dev.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/development/ui-dev.js b/development/ui-dev.js
index cac433909..b562d4af9 100644
--- a/development/ui-dev.js
+++ b/development/ui-dev.js
@@ -29,7 +29,7 @@ log.setDefaultLevel(1)
// Query String
const qs = require('qs')
-let queryString = qs.parse(window.location.href.split('#')[1])
+const queryString = qs.parse(window.location.href.split('#')[1])
let selectedView = queryString.view || 'first time'
const firstState = states[selectedView]
updateQueryParams(selectedView)
@@ -39,15 +39,15 @@ const MetaMaskUiCss = require('../ui/css')
const injectCss = require('inject-css')
-function updateQueryParams(newView) {
+function updateQueryParams (newView) {
queryString.view = newView
const params = qs.stringify(queryString)
window.location.href = window.location.href.split('#')[0] + `#${params}`
}
const actions = {
- _setBackgroundConnection(){},
- update: function(stateName) {
+ _setBackgroundConnection () {},
+ update: function (stateName) {
selectedView = stateName
updateQueryParams(stateName)
const newState = states[selectedView]
@@ -67,7 +67,7 @@ var store = configureStore(states[selectedView])
// start app
startApp()
-function startApp(){
+function startApp () {
const body = document.body
const container = document.createElement('div')
container.id = 'test-container'