aboutsummaryrefslogtreecommitdiffstats
path: root/ui/index.js
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-04-11 23:35:31 +0800
committerThomas <tmashuang@gmail.com>2018-04-11 23:35:31 +0800
commitf82c51c2c4782f54fb1d690f2dc1c309fafefe65 (patch)
tree84e5d2a1b989459f3dbb6f74e1921b4b83f705a0 /ui/index.js
parent30474ccd35d5d7f30ffb8dff0acc8fbc77f44731 (diff)
parent29dab1e9e00c1c1e6ad834026df51b2839d3171d (diff)
downloadtangerine-wallet-browser-f82c51c2c4782f54fb1d690f2dc1c309fafefe65.tar.gz
tangerine-wallet-browser-f82c51c2c4782f54fb1d690f2dc1c309fafefe65.tar.zst
tangerine-wallet-browser-f82c51c2c4782f54fb1d690f2dc1c309fafefe65.zip
Merge branch 'master' into testing
Diffstat (limited to 'ui/index.js')
-rw-r--r--ui/index.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/index.js b/ui/index.js
index 1e0e9f1cc..746e28eab 100644
--- a/ui/index.js
+++ b/ui/index.js
@@ -69,6 +69,16 @@ async function startApp (metamaskState, accountManager, opts) {
store.dispatch(actions.updateMetamaskState(metamaskState))
})
+ // global metamask api - used by tooling
+ global.metamask = {
+ updateCurrentLocale: (code) => {
+ store.dispatch(actions.updateCurrentLocale(code))
+ },
+ setProviderType: (type) => {
+ store.dispatch(actions.setProviderType(type))
+ },
+ }
+
// start app
render(
h(Root, {