fix to make sure we don't accidentally have `undefined` at the start of chapter text

because `undefined + "whatever"` is `"undefinedwhatever"`. obviously.
master
Drake 1 year ago
parent 48275fe46a
commit fe7b02beae

@ -105,8 +105,7 @@ export default class Chapter {
} }
async populateText() { async populateText() {
/*this.text = this.#document.querySelector("div.userstuff[role='article']")?.innerText.trim().replace(/Chapter Text\s+/, "") as string*/ this.#text = "";
//"div.userstuff[role='article'] > p"
Array.from( Array.from(
this.#document.querySelectorAll( this.#document.querySelectorAll(
"div.userstuff[role='article'] > p", "div.userstuff[role='article'] > p",

Loading…
Cancel
Save