Skip to content

Commit

Permalink
Merge pull request #15 from ZakisM/feat/use-webkit-playwright
Browse files Browse the repository at this point in the history
feat: use webkit for playwright
  • Loading branch information
ZakisM authored Feb 25, 2024
2 parents 0137f3e + 5f4ba41 commit edbfe41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright_bridge/index.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit edbfe41

Please sign in to comment.