summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-core/src')
-rw-r--r--packages/gitbook-core/src/index.js2
-rw-r--r--packages/gitbook-core/src/lib/createContext.js2
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({