aboutsummaryrefslogtreecommitdiff
path: root/src/background/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-03-07 20:54:28 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-03-07 20:57:52 +0900
commit24e72aa6e079009d4c24c7f6be6bfb82c21e6643 (patch)
treef5b4d46b8809b0dd152e3124b7354f3b9da16fe2 /src/background/actions
parent4923cb20c77e7cc84d8ecdf1b12ee6c204701e71 (diff)
add global find keyword
Diffstat (limited to 'src/background/actions')
-rw-r--r--src/background/actions/find.js10
-rw-r--r--src/background/actions/index.js3
2 files changed, 13 insertions, 0 deletions
diff --git a/src/background/actions/find.js b/src/background/actions/find.js
new file mode 100644
index 0000000..8da5572
--- /dev/null
+++ b/src/background/actions/find.js
@@ -0,0 +1,10 @@
+import actions from './index';
+
+const setKeyword = (keyword) => {
+ return {
+ type: actions.FIND_SET_KEYWORD,
+ keyword,
+ };
+};
+
+export { setKeyword };
diff --git a/src/background/actions/index.js b/src/background/actions/index.js
index efe4074..2bdaaf2 100644
--- a/src/background/actions/index.js
+++ b/src/background/actions/index.js
@@ -2,4 +2,7 @@ export default {
// Settings
SETTING_SET_SETTINGS: 'setting.set.settings',
SETTING_SET_PROPERTY: 'setting.set.property',
+
+ // Find
+ FIND_SET_KEYWORD: 'find.set.keyword',
};