Skip to content

Commit

Permalink
change firefox to chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
robertotcestari committed Aug 4, 2024
1 parent 2f039c0 commit c817705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/screenshot.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { firefox } from 'playwright-core';
import { chromium } from 'playwright-core';
import sharp from 'sharp';

export async function getBufferFromPageScreenshot(
Expand All @@ -7,7 +7,7 @@ export async function getBufferFromPageScreenshot(
) {
// Added timeout parameter with default value
try {
const browser = await firefox.launch();
const browser = await chromium.launch();
const page = await browser.newPage();
await page.setViewportSize({ width: 1920, height: 1080 });

Expand Down

0 comments on commit c817705

Please sign in to comment.