summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-search/src/index.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-10-13 16:17:00 +0200
committerSamy Pesse <samypesse@gmail.com>2016-10-13 16:17:00 +0200
commit05646996c0ef2f1a474bd547153b8ef87f89ac6e (patch)
treeb76ed08d1ae1410334bb0f0c7131b1ab2d9abdfe /packages/gitbook-plugin-search/src/index.js
parentc439cf851380da27ebaa0edce5fff99f8fb93d65 (diff)
downloadgitbook-05646996c0ef2f1a474bd547153b8ef87f89ac6e.zip
gitbook-05646996c0ef2f1a474bd547153b8ef87f89ac6e.tar.gz
gitbook-05646996c0ef2f1a474bd547153b8ef87f89ac6e.tar.bz2
Rename "navigation" to "history" and add loading bar
Diffstat (limited to 'packages/gitbook-plugin-search/src/index.js')
-rw-r--r--packages/gitbook-plugin-search/src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gitbook-plugin-search/src/index.js b/packages/gitbook-plugin-search/src/index.js
index bc6c406..298c088 100644
--- a/packages/gitbook-plugin-search/src/index.js
+++ b/packages/gitbook-plugin-search/src/index.js
@@ -18,9 +18,9 @@ const onLocationChange = (location, dispatch) => {
};
module.exports = GitBook.createPlugin({
- activate: (dispatch, getState, { Navigation, Components }) => {
+ activate: (dispatch, getState, { History, Components }) => {
// Register the navigation handler
- dispatch(Navigation.listen(onLocationChange));
+ dispatch(History.listen(onLocationChange));
// Register components
dispatch(Components.registerComponent(SearchInput, { role: 'search:input' }));