diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-29 19:04:56 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-29 19:04:56 +0200 |
commit | 9d8dffb6f0aac87c3707a4171140fa66f7e2e82c (patch) | |
tree | 7ea5fecc01960b04aa313d85f7ba5ee4d928a638 /packages/gitbook-core/src | |
parent | 6015defe11bbdd3bc008cf194e7e88181fe165d0 (diff) | |
download | gitbook-9d8dffb6f0aac87c3707a4171140fa66f7e2e82c.zip gitbook-9d8dffb6f0aac87c3707a4171140fa66f7e2e82c.tar.gz gitbook-9d8dffb6f0aac87c3707a4171140fa66f7e2e82c.tar.bz2 |
Fix query action for search
Diffstat (limited to 'packages/gitbook-core/src')
-rw-r--r-- | packages/gitbook-core/src/index.js | 2 | ||||
-rw-r--r-- | packages/gitbook-core/src/lib/createContext.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/gitbook-core/src/index.js b/packages/gitbook-core/src/index.js index c83fc3a..86370d1 100644 --- a/packages/gitbook-core/src/index.js +++ b/packages/gitbook-core/src/index.js @@ -1,3 +1,5 @@ +require('whatwg-fetch'); + const React = require('react'); const Immutable = require('immutable'); const Head = require('react-helmet'); diff --git a/packages/gitbook-core/src/lib/createContext.js b/packages/gitbook-core/src/lib/createContext.js index 71017d5..fdc0e0c 100644 --- a/packages/gitbook-core/src/lib/createContext.js +++ b/packages/gitbook-core/src/lib/createContext.js @@ -40,7 +40,7 @@ function createContext(plugins, initialState) { // Initialize the plugins plugins.forEach(plugin => { - plugin.init(store.dispatch, store.getState); + plugin.init(store.dispatch, store.getState, actions); }); return GitBookContext({ |