Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -31,6 +31,7 @@ const patchScreenshot = (page, images) => {
|
|
31 |
page.screenshot = async function (options = {}) {
|
32 |
const buffer = await orig.apply(this, [options]);
|
33 |
const url = await uploadFile(buffer);
|
|
|
34 |
if (url && url.path) {
|
35 |
images.push(url.path);
|
36 |
}
|
|
|
31 |
page.screenshot = async function (options = {}) {
|
32 |
const buffer = await orig.apply(this, [options]);
|
33 |
const url = await uploadFile(buffer);
|
34 |
+
console.log("[patchScreenshot] Upload result:", url);
|
35 |
if (url && url.path) {
|
36 |
images.push(url.path);
|
37 |
}
|