feat: !specify screenshot options

This commit is contained in:
karishmas6
2024-09-21 18:49:09 +05:30
parent dc9957d72f
commit 0137780e2c

View File

@@ -187,9 +187,7 @@ export class RemoteBrowser {
*/ */
public makeAndEmitScreenshot = async (): Promise<void> => { public makeAndEmitScreenshot = async (): Promise<void> => {
try { try {
const screenshot = await this.currentPage?.screenshot( const screenshot = await this.currentPage?.screenshot();
{ type: 'jpeg', quality: 90, fullPage: true }
);
if (screenshot) { if (screenshot) {
this.emitScreenshot(screenshot.toString('base64')); this.emitScreenshot(screenshot.toString('base64'));
} }