termai commited on
Commit
17a1fa8
·
verified ·
1 Parent(s): fd1f461

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -0
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
  }