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 | |
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')
-rw-r--r-- | packages/gitbook-core/package.json | 3 | ||||
-rw-r--r-- | packages/gitbook-core/src/index.js | 2 | ||||
-rw-r--r-- | packages/gitbook-core/src/lib/createContext.js | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/packages/gitbook-core/package.json b/packages/gitbook-core/package.json index 7105525..1bda456 100644 --- a/packages/gitbook-core/package.json +++ b/packages/gitbook-core/package.json @@ -17,7 +17,8 @@ "react-safe-html": "^0.3.0", "redux": "^3.5.2", "redux-thunk": "^2.1.0", - "reflexbox": "^2.2.2" + "reflexbox": "^2.2.2", + "whatwg-fetch": "^1.0.0" }, "devDependencies": { "babel-cli": "^6.14.0", 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({ |