From 45a65b38db55e358d58e9c608a8088d7cc157939 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 17 Jun 2018 11:35:18 +0900 Subject: Fix no previous search keywords --- src/content/components/top-content/find.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/content/components/top-content') diff --git a/src/content/components/top-content/find.js b/src/content/components/top-content/find.js index c765292..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.keyword) { - return this.postNoPrevious(); - } return this.store.dispatch(findActions.next(state.keyword, false)); } prev() { let state = this.store.getState().find; - if (!state.keyword) { - return this.postNoPrevious(); - } return this.store.dispatch(findActions.prev(state.keyword, false)); } - - postNoPrevious() { - return consoleFrames.postError( - window.document, - 'No previous search keypards'); - } } -- cgit v1.2.3