Spaces:
Build error
Build error
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 |
};
|