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.
1 parent d2c191b commit 4210a3bCopy full SHA for 4210a3b
src/plugin.js
@@ -52,7 +52,7 @@ window.require(["gitbook"], function(gitbook) {
52
reportElement.setAttribute("style", "position:fixed; right:0;bottom:0;");
53
var clickEvent = ("ontouchstart" in window) ? "touchend" : "click";
54
reportElement.addEventListener(clickEvent, function(event) {
55
- var pathname = path.join(gitbook.state.config.root, gitbook.state.filepath);
+ var pathname = path.join(gitbook.state.config.root || "./", gitbook.state.filepath);
56
var apiURL = getAPIURL(config, pathname);
57
var resourceURL = getResourceURL(config, pathname, "master");
58
var editURL = getEditURL(config, pathname, "master");
0 commit comments