File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ async function getPageData(options) {
220
220
const { data } = await Page . captureScreenshot ( screenshotOptions ) ;
221
221
await Runtime . evaluate ( { expression : `globalThis.${ SET_SCREENSHOT_FUNCTION_NAME } (${ JSON . stringify ( data ) } )` , contextId } ) ;
222
222
} catch ( error ) {
223
- await Runtime . evaluate ( { expression : `globalThis.${ SET_SCREENSHOT_FUNCTION_NAME } (${ JSON . stringify ( [ ] ) } )` , contextId } ) ;
223
+ await Runtime . evaluate ( { expression : `globalThis.${ SET_SCREENSHOT_FUNCTION_NAME } (${ JSON . stringify ( "" ) } )` , contextId } ) ;
224
224
}
225
225
}
226
226
} ) ;
@@ -241,7 +241,7 @@ async function getPageData(options) {
241
241
const { data } = await Page . printToPDF ( pdfOptions ) ;
242
242
await Runtime . evaluate ( { expression : `globalThis.${ SET_PDF_FUNCTION_NAME } (${ JSON . stringify ( data ) } )` , contextId } ) ;
243
243
} catch ( error ) {
244
- await Runtime . evaluate ( { expression : `globalThis.${ SET_PDF_FUNCTION_NAME } (${ JSON . stringify ( [ ] ) } )` , contextId } ) ;
244
+ await Runtime . evaluate ( { expression : `globalThis.${ SET_PDF_FUNCTION_NAME } (${ JSON . stringify ( "" ) } )` , contextId } ) ;
245
245
}
246
246
}
247
247
} ) ;
You can’t perform that action at this time.
0 commit comments