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 = { const r = {
title: document.title, title: document.title,
href: document.location.href, href: document.location.href,
html: document.documentElement.outerHTML, html: document.documentElement?.outerHTML,
text: document.body.innerText, text: document.body?.innerText,
parsed: parsed, parsed: parsed,
imgs: [], imgs: [],
}; };