summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-lunr/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-lunr/src')
-rw-r--r--packages/gitbook-plugin-lunr/src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/gitbook-plugin-lunr/src/index.js b/packages/gitbook-plugin-lunr/src/index.js
index 0eb6e04..f1dc913 100644
--- a/packages/gitbook-plugin-lunr/src/index.js
+++ b/packages/gitbook-plugin-lunr/src/index.js
@@ -13,7 +13,7 @@ function searchHandler(query) {
}
module.exports = GitBook.createPlugin({
- init: (dispatch, getState, { Search }) => {
+ activate: (dispatch, getState, { Search }) => {
dispatch(Search.registerHandler('lunr', searchHandler));
},
reduce: (state, action) => state