Strip off footer navigation links for Ward

Since the text is now "Previous Chapter" instead of "Last Chapter" they weren't getting removed.
This commit is contained in:
Domenic Denicola 2020-07-01 15:57:19 -04:00
commit 2593540551

View file

@ -378,7 +378,10 @@ function getBodyXML(chapter, contentEl) {
function isEmptyOrGarbage(el) {
const text = el.textContent.trim();
return text === "" || text.startsWith("Last Chapter") || text.startsWith("Next Chapter");
return text === "" ||
text.startsWith("Last Chapter") ||
text.startsWith("Previous Chapter") ||
text.startsWith("Next Chapter");
}
function escapeRegExp(str) {