diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-01 09:22:16 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-01 09:22:16 +0800 |
commit | e55938ed15428b452224f2d731c1e7ad141869d4 (patch) | |
tree | 7f267bf875e1bd714896cde8ae7244c601eb5d4a /ui | |
parent | 9a8ede22106c3f59d014be4905a078711180d30c (diff) | |
download | tangerine-wallet-browser-e55938ed15428b452224f2d731c1e7ad141869d4.tar tangerine-wallet-browser-e55938ed15428b452224f2d731c1e7ad141869d4.tar.gz tangerine-wallet-browser-e55938ed15428b452224f2d731c1e7ad141869d4.tar.bz2 tangerine-wallet-browser-e55938ed15428b452224f2d731c1e7ad141869d4.tar.lz tangerine-wallet-browser-e55938ed15428b452224f2d731c1e7ad141869d4.tar.xz tangerine-wallet-browser-e55938ed15428b452224f2d731c1e7ad141869d4.tar.zst tangerine-wallet-browser-e55938ed15428b452224f2d731c1e7ad141869d4.zip |
First simple version of ui mocker
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/info.js | 2 | ||||
-rw-r--r-- | ui/app/reducers.js | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/info.js b/ui/app/info.js index a473f5921..720b62d33 100644 --- a/ui/app/info.js +++ b/ui/app/info.js @@ -17,7 +17,7 @@ function InfoScreen () { InfoScreen.prototype.render = function () { var state = this.props - var manifest = chrome.runtime.getManifest() + var manifest = chrome ? chrome.runtime.getManifest() : { version: '2.0.0' } return ( h('.flex-column.flex-grow', [ diff --git a/ui/app/reducers.js b/ui/app/reducers.js index 17f94f230..f198758ea 100644 --- a/ui/app/reducers.js +++ b/ui/app/reducers.js @@ -13,6 +13,10 @@ function rootReducer (state, action) { // clone state = extend(state) + if (action.type === 'GLOBAL_FORCE_UPDATE') { + return action.value + } + // // Identities // |