Skip to content

Commit

Permalink
switch from innerText to text
Browse files Browse the repository at this point in the history
  • Loading branch information
webdev03 committed Oct 6, 2023
1 parent ed07cb0 commit 4285d29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/forums/Forum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Forum {
.getAttribute("href")!
.split("/")
.splice(1)[3];
const title = child.querySelector("strong")!.innerText;
const title = child.querySelector("strong")!.text;
const replyCount = Number(
child.querySelector(".item span")!.innerText.split(" ")[0]
);
Expand Down
2 changes: 1 addition & 1 deletion src/classes/forums/Topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Topic {
parsableContent: parsableContent,
author: child
.getElementsByTagName("header")[0]
.getElementsByTagName("h1")[0].innerText
.getElementsByTagName("h1")[0].text
});
posts.push(post);
});
Expand Down

0 comments on commit 4285d29

Please sign in to comment.