Skip to content

Commit bfcf4c4

Browse files
authored
Update puppeteer.ts
1 parent bf500f7 commit bfcf4c4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

api/_lib/puppeteer.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ let _page: Page | null;
55
async function getPage() {
66
if (_page) return _page;
77
const options = {
8-
args: [...chromium.args, '--hide-scrollbars', '--disable-web-security'],
9-
defaultViewport: chromium.defaultViewport,
10-
executablePath: await chromium.executablePath(),
11-
headless: chromium.headless,
12-
ignoreHTTPSErrors: true,
8+
args: chromium.args,
9+
defaultViewport: chromium.defaultViewport,
10+
executablePath: await chromium.executablePath(),
11+
headless: chromium.headless,
1312
};
1413
const browser = await launch(options);
1514
_page = await browser.newPage();

0 commit comments

Comments
 (0)