Skip to content

Commit 0481bc9

Browse files
committed
suport chapterTitle
1 parent f217495 commit 0481bc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugin.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ window.require(["gitbook"], function(gitbook) {
5656
var apiURL = getAPIURL(config, pathname);
5757
var resourceURL = getResourceURL(config, pathname, "master");
5858
var editURL = getEditURL(config, gitbook.state.filepath, "master");
59+
var chapterTitle = gitbook.state.chapterTitle;
5960
getContentAsync(apiURL).then(function(markdown) {
6061
var bug = new BugReporter(getIssueURL(config));
62+
bug.setTitle(chapterTitle);
6163
var selectedText = bug.getSelectedText().trim();
6264
let body = 'URL : ' + resourceURL + "\n\n";
6365
if (selectedText && selectedText.length > 0) {

0 commit comments

Comments
 (0)