aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-31 02:16:08 +0800
committerkumavis <aaron@kumavis.me>2018-03-31 02:16:08 +0800
commitb014133fdc14ca4fe83b9cb59d181a7745af8de7 (patch)
treebfdc24248523bd23c5af3a5858db1621d76430bb /ui
parent5f1f345a5d7f428c939a6ab3cbf9d5ac56cb58ed (diff)
downloadtangerine-wallet-browser-b014133fdc14ca4fe83b9cb59d181a7745af8de7.tar
tangerine-wallet-browser-b014133fdc14ca4fe83b9cb59d181a7745af8de7.tar.gz
tangerine-wallet-browser-b014133fdc14ca4fe83b9cb59d181a7745af8de7.tar.bz2
tangerine-wallet-browser-b014133fdc14ca4fe83b9cb59d181a7745af8de7.tar.lz
tangerine-wallet-browser-b014133fdc14ca4fe83b9cb59d181a7745af8de7.tar.xz
tangerine-wallet-browser-b014133fdc14ca4fe83b9cb59d181a7745af8de7.tar.zst
tangerine-wallet-browser-b014133fdc14ca4fe83b9cb59d181a7745af8de7.zip
development - screens - use localhost for network
Diffstat (limited to 'ui')
-rw-r--r--ui/index.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/ui/index.js b/ui/index.js
index 8fb000d85..746e28eab 100644
--- a/ui/index.js
+++ b/ui/index.js
@@ -69,9 +69,14 @@ async function startApp (metamaskState, accountManager, opts) {
store.dispatch(actions.updateMetamaskState(metamaskState))
})
- // used by screenshotter tooling
- global.setLocale = (key) => {
- store.dispatch(actions.updateCurrentLocale(key))
+ // global metamask api - used by tooling
+ global.metamask = {
+ updateCurrentLocale: (code) => {
+ store.dispatch(actions.updateCurrentLocale(code))
+ },
+ setProviderType: (type) => {
+ store.dispatch(actions.setProviderType(type))
+ },
}
// start app