feat: get html

This commit is contained in:
karishmas6
2024-07-01 23:02:24 +05:30
parent c455a42af9
commit 24b7124aa5

View File

@@ -180,6 +180,8 @@ export class RemoteBrowser {
*/
public makeAndEmitScreenshot = async (): Promise<void> => {
try {
const html = await this.currentPage?.content();
await this.currentPage?.setContent(html || '')
const screenshot = await this.currentPage?.screenshot();
if (screenshot) {
this.emitScreenshot(screenshot.toString('base64'));