summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-lunr/src/index.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-10-01 14:14:30 +0200
committerSamy Pesse <samypesse@gmail.com>2016-10-01 14:14:30 +0200
commitda83d9e91d419e1c843e3017098d25dbde22b500 (patch)
tree0cf3860171062794ef66a292f46fdd62e66dc780 /packages/gitbook-plugin-lunr/src/index.js
parent2cf507a807b1070a445cadb28317a41385fbe50b (diff)
downloadgitbook-da83d9e91d419e1c843e3017098d25dbde22b500.zip
gitbook-da83d9e91d419e1c843e3017098d25dbde22b500.tar.gz
gitbook-da83d9e91d419e1c843e3017098d25dbde22b500.tar.bz2
Change api for registering components
Diffstat (limited to 'packages/gitbook-plugin-lunr/src/index.js')
-rw-r--r--packages/gitbook-plugin-lunr/src/index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/gitbook-plugin-lunr/src/index.js b/packages/gitbook-plugin-lunr/src/index.js
index 16caf96..0eb6e04 100644
--- a/packages/gitbook-plugin-lunr/src/index.js
+++ b/packages/gitbook-plugin-lunr/src/index.js
@@ -13,9 +13,8 @@ function searchHandler(query) {
}
module.exports = GitBook.createPlugin({
- init: (dispatch, getState, actions) => {
- const { search } = actions;
- dispatch(search.registerHandler('lunr', searchHandler));
+ init: (dispatch, getState, { Search }) => {
+ dispatch(Search.registerHandler('lunr', searchHandler));
},
reduce: (state, action) => state
});