From e55938ed15428b452224f2d731c1e7ad141869d4 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 30 Jun 2016 18:22:16 -0700 Subject: First simple version of ui mocker --- ui/app/info.js | 2 +- ui/app/reducers.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'ui') 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 // -- cgit v1.2.3