fix: on null element

This commit is contained in:
yanlong.wang 2024-04-29 17:28:07 +08:00
parent 53a4361c23
commit 15606f38d7
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -175,8 +175,8 @@ function giveSnapshot() {
const r = {
title: document.title,
href: document.location.href,
html: document.documentElement.outerHTML,
text: document.body.innerText,
html: document.documentElement?.outerHTML,
text: document.body?.innerText,
parsed: parsed,
imgs: [],
};