We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6bb8e9 + ddac906 commit c811839Copy full SHA for c811839
src/plugin.js
@@ -64,6 +64,11 @@ require(['gitbook'], function (gitbook) {
64
return window["gitbook-plugin-github-buttons"];
65
}
66
67
+ // make sure configuration gets injected
68
+ gitbook.events.bind('start', function (e, config) {
69
+ window["gitbook-plugin-github-buttons"] = config["github-buttons"];
70
+ });
71
+
72
gitbook.events.bind('page.change', function () {
73
init(getPluginConfig());
74
});
0 commit comments