nomagick commited on
Commit
15606f3
·
unverified ·
1 Parent(s): 53a4361

fix: on null element

Browse files
backend/functions/src/services/puppeteer.ts CHANGED
@@ -175,8 +175,8 @@ function giveSnapshot() {
175
  const r = {
176
  title: document.title,
177
  href: document.location.href,
178
- html: document.documentElement.outerHTML,
179
- text: document.body.innerText,
180
  parsed: parsed,
181
  imgs: [],
182
  };
 
175
  const r = {
176
  title: document.title,
177
  href: document.location.href,
178
+ html: document.documentElement?.outerHTML,
179
+ text: document.body?.innerText,
180
  parsed: parsed,
181
  imgs: [],
182
  };