Skip to content

Commit ebffaf9

Browse files
authored
fix: content url for private repo
1 parent 3a4e69f commit ebffaf9

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+
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)