Skip to content

Commit

Permalink
Fix: incorrect de-duping in "Edit Chapter URLs"
Browse files Browse the repository at this point in the history
See: #1063
  • Loading branch information
dteviot committed Sep 2, 2023
1 parent 589c104 commit 3792501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/js/ChapterUrlsUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class ChapterUrlsUI {
htmlToChapters(innerHtml) {
let html = "<html><head><title></title><body>" + innerHtml + "</body></html>";
let doc = new DOMParser().parseFromString(html, "text/html");
return util.hyperlinksToChapterList(doc.body);
return [...doc.body.querySelectorAll("a")].map(a => util.hyperLinkToChapter(a));
}

/** @private */
Expand Down

0 comments on commit 3792501

Please sign in to comment.