diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-11 15:53:46 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-11 16:16:10 +0900 |
commit | 12db4943ee54e1b0b48c806cde589254cb6fef51 (patch) | |
tree | 0b74672285e014c7c2850f2fb6d27f205240facd /src/content/reducers | |
parent | 6db245892944b9e0a6a4f82b6e63453c880e3686 (diff) |
show error on find and wrap search
Diffstat (limited to 'src/content/reducers')
-rw-r--r-- | src/content/reducers/find.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content/reducers/find.js b/src/content/reducers/find.js index 6042f50..f0bfbeb 100644 --- a/src/content/reducers/find.js +++ b/src/content/reducers/find.js @@ -3,6 +3,7 @@ import actions from 'content/actions'; const defaultState = { enabled: false, keyword: '', + found: false, }; export default function reducer(state = defaultState, action = {}) { @@ -18,6 +19,7 @@ export default function reducer(state = defaultState, action = {}) { case actions.FIND_SET_KEYWORD: return Object.assign({}, state, { keyword: action.keyword, + found: action.found, }); default: return state; |