Skip to content

Commit 9e4d715

Browse files
authored
Merge pull request #10 from matzkoh/patch-1
fix: content url for private repo
2 parents 3a4e69f + 8b27882 commit 9e4d715

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function getContentURL(config, filePath) {
3939
if (config.private) {
4040
return urlJoin(
4141
location.origin,
42+
/\.github\.io$/.test(config.repo) ? '' : config.repo.split('/')[1],
4243
"gitbook/gitbook-plugin-github-issue-feedback/contents",
4344
filePath
4445
);
@@ -95,4 +96,4 @@ window.require(["gitbook"], function(gitbook) {
9596
document.body.appendChild(reportElement);
9697
});
9798

98-
});
99+
});

0 commit comments

Comments
 (0)