Skip to content

Commit

Permalink
fix 69shuba
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0206 committed Dec 24, 2024
1 parent c73a057 commit a009ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function rm2(filters: (string | RegExp)[], dom: HTMLElement) {
if (node.nodeName === "#text") {
text = (node as Text).textContent ?? "";
} else {
text = (node as HTMLElement).innerText;
text = (node as HTMLElement).innerText ?? "";
}
if (text.length < 200 || node instanceof Text) {
for (const filter of filters) {
Expand Down

0 comments on commit a009ea9

Please sign in to comment.