Skip to content

Commit

Permalink
fix: some element is not p
Browse files Browse the repository at this point in the history
  • Loading branch information
shaokeyibb committed Aug 27, 2024
1 parent f5c0c5b commit d072b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare-workers/src/administration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function sendCommentUpdateToTelegram(env: Env, req: PostComment) {
title = titleElement.text;
}
const paragraphElement = root.querySelector(
`p[data-original-document-start="${req.offset.start}"][data-original-document-end="${req.offset.end}"]`,
`[data-original-document-start="${req.offset.start}"][data-original-document-end="${req.offset.end}"]`,
);
if (paragraphElement) {
offset = paragraphElement.text;
Expand Down

0 comments on commit d072b3c

Please sign in to comment.