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() {
/*this.text = this.#document.querySelector("div.userstuff[role='article']")?.innerText.trim().replace(/Chapter Text\s+/, "") as string*/
//"div.userstuff[role='article'] > p"
this.#text = "";
Array.from(
this.#document.querySelectorAll(
"div.userstuff[role='article'] > p",

Loading…
Cancel
Save