Skip to content

Commit

Permalink
extractInformation() can use informationEpubItem()
Browse files Browse the repository at this point in the history
See: #1484
  • Loading branch information
dteviot committed Sep 16, 2024
1 parent 4e3df7b commit 751ba8d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugin/js/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,14 @@ class Parser {
extractSubject(dom) { // eslint-disable-line no-unused-vars
return "";
}
extractDescription(dom) { // eslint-disable-line no-unused-vars
return "";

extractDescription(dom) {
let infoDiv = document.createElement("div");
if (this.getInformationEpubItemChildNodes !== undefined)
{
this.populateInfoDiv(infoDiv, dom);
}
return infoDiv.textContent;
}

/**
Expand Down

0 comments on commit 751ba8d

Please sign in to comment.