From 5f4ba41bf3032a4d168ff5fc58ae7c257df47151 Mon Sep 17 00:00:00 2001 From: zak <8143258+ZakisM@users.noreply.github.com> Date: Sun, 25 Feb 2024 19:11:58 +0000 Subject: [PATCH] feat: use webkit for playwright --- playwright_bridge/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright_bridge/index.ts b/playwright_bridge/index.ts index b5aab08..1faf2b6 100644 --- a/playwright_bridge/index.ts +++ b/playwright_bridge/index.ts @@ -1,4 +1,4 @@ -import {chromium, type Browser} from 'playwright'; +import {webkit, type Browser} from 'playwright'; function invariant(condition: any, message: string): asserts condition { if (condition) return; @@ -11,7 +11,7 @@ let browser: Browser; const getPageSource = async (url: string, timeout: number) => { if (!browser) { try { - browser = await chromium.launch({headless: true}); + browser = await webkit.launch({headless: true}); } catch (error) { console.error(error); process.exit(1);