diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-03-07 21:34:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 21:34:37 +0900 |
commit | d2a3c6cdd4d6ca564d9a80d281ba14648ffcc6eb (patch) | |
tree | 0de3603c8cffef056584413ef8a5a0dc051b8d8f /src/content/components/top-content/find.js | |
parent | 72bf3cc2bdcc63864e064a64f7459aba004f4538 (diff) | |
parent | 92f8365be7127c3fa0276b1a6e890571f634622e (diff) |
Merge pull request #355 from ueokande/search-across-pages
Search across pages
Diffstat (limited to 'src/content/components/top-content/find.js')
-rw-r--r-- | src/content/components/top-content/find.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/content/components/top-content/find.js b/src/content/components/top-content/find.js index bccf040..4d46d79 100644 --- a/src/content/components/top-content/find.js +++ b/src/content/components/top-content/find.js @@ -1,6 +1,5 @@ import * as findActions from 'content/actions/find'; import messages from 'shared/messages'; -import * as consoleFrames from '../../console-frames'; export default class FindComponent { constructor(win, store) { @@ -32,23 +31,11 @@ export default class FindComponent { next() { let state = this.store.getState().find; - - if (!state.found) { - return consoleFrames.postError( - window.document, - 'Pattern not found: ' + state.keyword); - } return this.store.dispatch(findActions.next(state.keyword, false)); } prev() { let state = this.store.getState().find; - - if (!state.found) { - return consoleFrames.postError( - window.document, - 'Pattern not found: ' + state.keyword); - } return this.store.dispatch(findActions.prev(state.keyword, false)); } } |