aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-01-30 22:16:40 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-05 20:19:55 +0800
commita7a6318c132d2c0014f7f6ee2ff70d4a9ec259ac (patch)
tree5d8343474f52d12044b590174b39d2172db7af00 /app
parentc18b6f4117d7c3ccc36fde3c2792f7eb9641dfd9 (diff)
downloadtangerine-wallet-browser-a7a6318c132d2c0014f7f6ee2ff70d4a9ec259ac.tar
tangerine-wallet-browser-a7a6318c132d2c0014f7f6ee2ff70d4a9ec259ac.tar.gz
tangerine-wallet-browser-a7a6318c132d2c0014f7f6ee2ff70d4a9ec259ac.tar.bz2
tangerine-wallet-browser-a7a6318c132d2c0014f7f6ee2ff70d4a9ec259ac.tar.lz
tangerine-wallet-browser-a7a6318c132d2c0014f7f6ee2ff70d4a9ec259ac.tar.xz
tangerine-wallet-browser-a7a6318c132d2c0014f7f6ee2ff70d4a9ec259ac.tar.zst
tangerine-wallet-browser-a7a6318c132d2c0014f7f6ee2ff70d4a9ec259ac.zip
Default to the new UI for all users
Diffstat (limited to 'app')
-rw-r--r--app/scripts/ui.js22
1 files changed, 2 insertions, 20 deletions
diff --git a/app/scripts/ui.js b/app/scripts/ui.js
index e4b9b7b9c..67ec6bf06 100644
--- a/app/scripts/ui.js
+++ b/app/scripts/ui.js
@@ -1,7 +1,5 @@
const injectCss = require('inject-css')
-const OldMetaMaskUiCss = require('../../old-ui/css')
const NewMetaMaskUiCss = require('../../ui/css')
-const {getShouldUseNewUi} = require('../../ui/app/selectors')
const startPopup = require('./popup-core')
const PortStream = require('extension-port-stream')
const { getEnvironmentType } = require('./lib/util')
@@ -49,30 +47,14 @@ async function start () {
if (err) return displayCriticalError(err)
const state = store.getState()
- const { metamask: { completedOnboarding, featureFlags } = {} } = state
+ const { metamask: { completedOnboarding } = {} } = state
if (!completedOnboarding && windowType !== ENVIRONMENT_TYPE_FULLSCREEN) {
global.platform.openExtensionInBrowser()
return
}
- let betaUIState = Boolean(featureFlags && featureFlags.betaUI)
- const useBetaCss = getShouldUseNewUi(state)
-
- let css = useBetaCss ? NewMetaMaskUiCss() : OldMetaMaskUiCss()
- let deleteInjectedCss = injectCss(css)
- let newBetaUIState
-
- store.subscribe(() => {
- const state = store.getState()
- newBetaUIState = state.metamask.featureFlags.betaUI
- if (newBetaUIState !== betaUIState) {
- deleteInjectedCss()
- betaUIState = newBetaUIState
- css = betaUIState ? NewMetaMaskUiCss() : OldMetaMaskUiCss()
- deleteInjectedCss = injectCss(css)
- }
- })
+ injectCss(NewMetaMaskUiCss())
})